summaryrefslogtreecommitdiff
path: root/bot/src/commands/lua.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-04-12 16:55:51 +0500
committerilotterytea <iltsu@alright.party>2025-04-12 16:55:51 +0500
commit9fc268e10ec78830df8ebb6b60f201790e5d5d6f (patch)
tree47d055d424537a96075804b99acbdd04b4747dfd /bot/src/commands/lua.hpp
parent0e1b8bcdd6435ea1f1ad878a6f0813ab72259c24 (diff)
feat: db functions for lua
Diffstat (limited to 'bot/src/commands/lua.hpp')
-rw-r--r--bot/src/commands/lua.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/src/commands/lua.hpp b/bot/src/commands/lua.hpp
index 6391a2e..ef16ade 100644
--- a/bot/src/commands/lua.hpp
+++ b/bot/src/commands/lua.hpp
@@ -10,6 +10,7 @@
#include "commands/command.hpp"
#include "commands/response.hpp"
+#include "config.hpp"
#include "schemas/user.hpp"
void print_lua_object_type(const sol::object &obj);
@@ -25,6 +26,8 @@ namespace bot::command::lua {
const Request &request,
const InstanceBundle &bundle);
void add_net_library(std::shared_ptr<sol::state> state);
+ void add_db_library(std::shared_ptr<sol::state> state,
+ const Configuration &config);
void add_irc_library(std::shared_ptr<sol::state> state,
const InstanceBundle &bundle);