From 54e2744e3135f0eab9c9ec1e2cb84d831233df68 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 9 May 2024 00:36:56 +0500 Subject: feat: handler for timers --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 700c01d..a582df4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -13,6 +13,7 @@ #include "irc/message.hpp" #include "localization/localization.hpp" #include "stream.hpp" +#include "timer.hpp" int main(int argc, char *argv[]) { std::cout << "hi world\n"; @@ -110,6 +111,10 @@ int main(int argc, char *argv[]) { }); client.run(); + + std::thread timer_thread(bot::create_timer_thread, &client, &cfg); + timer_thread.join(); + stream_listener_client.run_thread(); return 0; -- cgit v1.2.3