From 2a49844a95593ac98e919c18651320e62f276fa7 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 6 Apr 2025 17:28:47 +0400 Subject: feat: implementing lua coding --- bot/src/commands/command.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bot/src/commands/command.hpp') 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 #include +#include +#include #include #include @@ -41,6 +43,7 @@ namespace bot { ~CommandLoader() = default; void add_command(std::unique_ptr cmd); + void load_lua_directory(const std::string &folder_path); std::optional run(const InstanceBundle &bundle, const Request &msg) const; @@ -50,6 +53,8 @@ namespace bot { private: std::vector> commands; + + std::shared_ptr luaState; }; } } -- cgit v1.2.3