summaryrefslogtreecommitdiff
path: root/bot/src/commands/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'bot/src/commands/command.cpp')
-rw-r--r--bot/src/commands/command.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/bot/src/commands/command.cpp b/bot/src/commands/command.cpp
index 18273e4..fe29b28 100644
--- a/bot/src/commands/command.cpp
+++ b/bot/src/commands/command.cpp
@@ -83,10 +83,7 @@ namespace bot {
std::optional<Response> CommandLoader::run(const InstanceBundle &bundle,
const Request &request) {
- lua::library::add_bot_library(this->luaState, bundle);
- lua::library::add_irc_library(this->luaState, bundle);
- lua::library::add_twitch_library(this->luaState, request, bundle);
- lua::library::add_db_library(this->luaState, bundle.configuration);
+ lua::library::add_chat_libraries(this->luaState, request, bundle);
auto command = std::find_if(
this->commands.begin(), this->commands.end(),