From e410ed000d119d0d3e4d5707abad11512b9e4a34 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 15 Apr 2025 15:51:02 +0500 Subject: feat: !help in lua --- bot/src/modules/help.hpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 bot/src/modules/help.hpp (limited to 'bot/src/modules') diff --git a/bot/src/modules/help.hpp b/bot/src/modules/help.hpp deleted file mode 100644 index 1341b86..0000000 --- a/bot/src/modules/help.hpp +++ /dev/null @@ -1,30 +0,0 @@ -#pragma once - -#include -#include - -#include "../bundle.hpp" -#include "../commands/command.hpp" -#include "../commands/response_error.hpp" - -namespace bot { - namespace mod { - class Help : public command::Command { - std::string get_name() const override { return "help"; } - - command::Response run(const InstanceBundle &bundle, - const command::Request &request) const override { - if (!bundle.configuration.url.help.has_value()) { - throw ResponseException( - request, bundle.localization); - } - - return command::Response( - bundle.localization - .get_formatted_line(request, loc::LineId::HelpResponse, - {*bundle.configuration.url.help}) - .value()); - } - }; - } -} -- cgit v1.2.3