diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-15 04:33:34 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-15 04:33:34 +0500 |
| commit | 583d2e3085443800e1ca65542d38821940efbed7 (patch) | |
| tree | 21d63b6ad6fba5f05124750a93cdfc7b62717eb4 /bot/src/commands/lua.cpp | |
| parent | 22d9eb220376ccf2bddeb3b3895064804c534ac8 (diff) | |
feat: add_chat_libraries function
Diffstat (limited to 'bot/src/commands/lua.cpp')
| -rw-r--r-- | bot/src/commands/lua.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bot/src/commands/lua.cpp b/bot/src/commands/lua.cpp index d02b9db..e8ac0c2 100644 --- a/bot/src/commands/lua.cpp +++ b/bot/src/commands/lua.cpp @@ -474,6 +474,15 @@ namespace bot::command::lua { add_l10n_library(state); } + void add_chat_libraries(std::shared_ptr<sol::state> state, + const Request &request, + const InstanceBundle &bundle) { + lua::library::add_bot_library(state, bundle); + lua::library::add_irc_library(state, bundle); + lua::library::add_twitch_library(state, request, bundle); + lua::library::add_db_library(state, bundle.configuration); + } + void add_irc_library(std::shared_ptr<sol::state> state, const InstanceBundle &bundle) { state->set_function("irc_join_channel", |
