From 2a49844a95593ac98e919c18651320e62f276fa7 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 6 Apr 2025 17:28:47 +0400 Subject: feat: implementing lua coding --- bot/src/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bot/src/main.cpp') diff --git a/bot/src/main.cpp b/bot/src/main.cpp index a95e4a8..212d190 100644 --- a/bot/src/main.cpp +++ b/bot/src/main.cpp @@ -1,5 +1,7 @@ +#include #include #include +#include #include #include #include @@ -7,6 +9,8 @@ #include "api/twitch/helix_client.hpp" #include "bundle.hpp" #include "commands/command.hpp" +#include "commands/lua.hpp" +#include "commands/response.hpp" #include "config.hpp" #include "github.hpp" #include "handlers.hpp" @@ -49,6 +53,8 @@ int main(int argc, char *argv[]) { bot::irc::Client client(cfg.twitch_credentials.client_id, cfg.twitch_credentials.token); bot::command::CommandLoader command_loader; + command_loader.load_lua_directory("luamods"); + bot::loc::Localization localization("localization"); bot::api::twitch::HelixClient helix_client(cfg.twitch_credentials.token, cfg.twitch_credentials.client_id); -- cgit v1.2.3