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/lua.hpp | |
| parent | d1fcac7411bd0a686c3ccaa7416d98dc197c4e59 (diff) | |
feat: a command for executing lua scripts
Diffstat (limited to 'bot/src/commands/lua.hpp')
| -rw-r--r-- | bot/src/commands/lua.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/commands/lua.hpp b/bot/src/commands/lua.hpp index b858759..bf8a4e1 100644 --- a/bot/src/commands/lua.hpp +++ b/bot/src/commands/lua.hpp @@ -20,6 +20,10 @@ namespace bot::command::lua { void add_time_library(std::shared_ptr<sol::state> state); } + command::Response run_safe_lua_script(const Request &request, + const InstanceBundle &bundle, + const std::string &script); + class LuaCommand : public Command { public: LuaCommand(std::shared_ptr<sol::state> luaState, |
