diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-06 19:29:55 +0400 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-06 19:29:55 +0400 |
| commit | 3d4bdc1cd39726949d7d25a6a2db45ada86a087a (patch) | |
| tree | 21d897aeb87cb7e8149f8f78b05459f20ba7a34e /bot/src/commands/command.cpp | |
| parent | d1fcac7411bd0a686c3ccaa7416d98dc197c4e59 (diff) | |
feat: a command for executing lua scripts
Diffstat (limited to 'bot/src/commands/command.cpp')
| -rw-r--r-- | bot/src/commands/command.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<mod::User>()); this->add_command(std::make_unique<mod::MinecraftServerCheck>()); + this->add_command(std::make_unique<mod::LuaExecution>()); + this->luaState = std::make_shared<sol::state>(); this->luaState->open_libraries(sol::lib::base, sol::lib::string, sol::lib::math); |
