diff options
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); |
