From 583d2e3085443800e1ca65542d38821940efbed7 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 15 Apr 2025 04:33:34 +0500 Subject: feat: add_chat_libraries function --- bot/src/commands/lua.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'bot/src/commands/lua.cpp') 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 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 state, const InstanceBundle &bundle) { state->set_function("irc_join_channel", -- cgit v1.2.3