From 3d4bdc1cd39726949d7d25a6a2db45ada86a087a Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 6 Apr 2025 19:29:55 +0400 Subject: feat: a command for executing lua scripts --- bot/src/commands/command.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bot/src/commands/command.cpp') diff --git a/bot/src/commands/command.cpp b/bot/src/commands/command.cpp index baf5a62..5d329ef 100644 --- a/bot/src/commands/command.cpp +++ b/bot/src/commands/command.cpp @@ -28,6 +28,7 @@ #include "../utils/chrono.hpp" #include "commands/lua.hpp" #include "logger.hpp" +#include "modules/lua.hpp" #include "request.hpp" #include "response.hpp" @@ -47,6 +48,8 @@ namespace bot { this->add_command(std::make_unique()); this->add_command(std::make_unique()); + this->add_command(std::make_unique()); + this->luaState = std::make_shared(); this->luaState->open_libraries(sol::lib::base, sol::lib::string, sol::lib::math); -- cgit v1.2.3