summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-15 04:33:34 +0500
committerilotterytea <iltsu@alright.party>2025-04-15 04:33:34 +0500
commit583d2e3085443800e1ca65542d38821940efbed7 (patch)
tree21d63b6ad6fba5f05124750a93cdfc7b62717eb4 /bot/src/commands/lua.hpp
parent22d9eb220376ccf2bddeb3b3895064804c534ac8 (diff)
feat: add_chat_libraries function
Diffstat (limited to 'bot/src/commands/lua.hpp')
-rw-r--r--bot/src/commands/lua.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/bot/src/commands/lua.hpp b/bot/src/commands/lua.hpp
index ef16ade..9a5c344 100644
--- a/bot/src/commands/lua.hpp
+++ b/bot/src/commands/lua.hpp
@@ -8,6 +8,7 @@
#include <string>
#include <vector>
+#include "bundle.hpp"
#include "commands/command.hpp"
#include "commands/response.hpp"
#include "config.hpp"
@@ -32,6 +33,9 @@ namespace bot::command::lua {
const InstanceBundle &bundle);
void add_base_libraries(std::shared_ptr<sol::state> state);
+ void add_chat_libraries(std::shared_ptr<sol::state> state,
+ const Request &request,
+ const InstanceBundle &bundle);
}
command::Response run_safe_lua_script(const Request &request,