Migrate core infrastructure to VoidLibrary

This commit is contained in:
faumaray committed 2026-06-22 15:53:23 +03:00
1 parent 53801f2b53
commit 2bdb63766d
65 files changed
+16109 -12011

No files matched your search

+28 -21
View File
@@ -4,31 +4,38 @@
#include "echoion/core/Logger.hpp"
#include <format>
namespace Echoion::Core {
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.");
}
class ReloadCommand : public Command
{
public:
std::string_view getDescription() const override {
return "Shows information about reloading the bot.";
}
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.");
}
CommandCategory getCategory() const override {
return CommandCategory::Admin;
}
std::string_view getDescription() const override
{
return "Shows information about reloading the bot.";
}
bool requiresAdmin() const override {
return true;
}
CommandCategory getCategory() const override
{
return CommandCategory::Admin;
}
std::vector<std::string_view> getAliases() const override {
return {"restart", "r"};
}
};
bool requiresAdmin() const override { return true; }
std::vector<std::string_view> getAliases() const override
{
return {"restart", "r"};
}
};
} // namespace Echoion::Core