making WEB

Signed-off-by: faumaray <faumaray@gmail.com>
This commit is contained in:
faumaray committed 2026-07-11 00:45:17 +03:00
1 parent d146f11f02
commit 5c036d91fb
72 files changed
+5875 -1243

No files matched your search

@@ -17,21 +17,27 @@ namespace Echoion::Core
try {
auto core = ctx.service<Api::ICoreInterface>();
if (!core) {
ctx.reply("Config reload is unavailable right now.");
ctx.reply(
ctx.tr("Config reload is unavailable right now."));
return;
}
auto result = core->reloadConfig();
if (result) {
ctx.reply("✅ Configuration reloaded from disk.");
ctx.reply(
ctx.tr("✅ Configuration reloaded from disk."));
} else {
ctx.reply(std::string("❌ Failed to reload config: ") +
result.error().message);
}
} catch (const std::exception& e) {
Void::Log::error("ReloadConfigCommand", "{}", std::format(
"ReloadConfig command exception: {}", e.what()));
ctx.reply("Something went wrong. Please try again.");
Void::Log::error(
"ReloadConfigCommand",
"{}",
std::format("ReloadConfig command exception: {}",
e.what()));
ctx.reply(
ctx.tr("Something went wrong. Please try again."));
}
}