Files
EchoionCore/include/echoion/core/commands/ReloadCommand.hpp
T
2026-02-01 23:04:49 +03:00

35 lines
894 B
C++

#pragma once
#include "Command.hpp"
#include "echoion/core/Logger.hpp"
#include <format>
namespace Echoion::Core {
class ReloadCommand : public Command {
public:
void execute(const CommandContext& ctx) override {
// This is a placeholder - actual reload is handled by the plugin
ECHOION_LOG_INFO("Reload requested by user");
ctx.reply("Reload is handled automatically by the plugin. Use the TS3 plugin menu to reload the core.");
}
std::string_view getDescription() const override {
return "Shows information about reloading the bot.";
}
CommandCategory getCategory() const override {
return CommandCategory::Admin;
}
bool requiresAdmin() const override {
return true;
}
std::vector<std::string_view> getAliases() const override {
return {"restart", "r"};
}
};
} // namespace Echoion::Core