diff options
Diffstat (limited to 'bot/src/commands/command.hpp')
| -rw-r--r-- | bot/src/commands/command.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bot/src/commands/command.hpp b/bot/src/commands/command.hpp index 793446e..c2398ec 100644 --- a/bot/src/commands/command.hpp +++ b/bot/src/commands/command.hpp @@ -2,6 +2,8 @@ #include <memory> #include <optional> +#include <sol/sol.hpp> +#include <sol/state.hpp> #include <string> #include <vector> @@ -41,6 +43,7 @@ namespace bot { ~CommandLoader() = default; void add_command(std::unique_ptr<Command> cmd); + void load_lua_directory(const std::string &folder_path); std::optional<Response> run(const InstanceBundle &bundle, const Request &msg) const; @@ -50,6 +53,8 @@ namespace bot { private: std::vector<std::unique_ptr<Command>> commands; + + std::shared_ptr<sol::state> luaState; }; } } |
