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/lua.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bot/src/commands/lua.hpp') 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 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 luaState, -- cgit v1.2.3