From 2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 13 Dec 2024 23:50:45 +0500 Subject: feat: now you can listen to github --- bot/src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bot/src/main.cpp') diff --git a/bot/src/main.cpp b/bot/src/main.cpp index 3c8f5e7..a95e4a8 100644 --- a/bot/src/main.cpp +++ b/bot/src/main.cpp @@ -1,12 +1,14 @@ #include #include #include +#include #include #include "api/twitch/helix_client.hpp" #include "bundle.hpp" #include "commands/command.hpp" #include "config.hpp" +#include "github.hpp" #include "handlers.hpp" #include "irc/client.hpp" #include "irc/message.hpp" @@ -99,6 +101,8 @@ int main(int argc, char *argv[]) { bot::stream::StreamListenerClient stream_listener_client(helix_client, client, cfg); + bot::GithubListener github_listener(cfg, client); + client.on( [&client, &command_loader, &localization, &cfg, &helix_client]( const bot::irc::Message &message) { @@ -118,6 +122,7 @@ int main(int argc, char *argv[]) { threads.push_back(std::thread(bot::create_timer_thread, &client, &cfg)); threads.push_back(std::thread(&bot::stream::StreamListenerClient::run, &stream_listener_client)); + threads.push_back(std::thread(&bot::GithubListener::run, &github_listener)); for (auto &thread : threads) { thread.join(); -- cgit v1.2.3