summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-03 23:26:52 +0500
committerilotterytea <iltsu@alright.party>2024-05-03 23:26:52 +0500
commit1924b6751a29f8b528d09412bd1e1e74f4d30c27 (patch)
treeceaeb5a4806ba217e09fde395589065fd48aa2b4 /src/main.cpp
parentd5a08922b8f22e4494fca0e28252f4b769649d64 (diff)
feat: stream listener client
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2eb0a96..20823ba 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -11,6 +11,7 @@
#include "irc/client.hpp"
#include "irc/message.hpp"
#include "localization/localization.hpp"
+#include "stream.hpp"
int main(int argc, char *argv[]) {
std::cout << "hi world\n";
@@ -61,6 +62,8 @@ int main(int argc, char *argv[]) {
bot::api::twitch::HelixClient helix_client(cfg.bot_password,
cfg.bot_client_id);
+ bot::stream::StreamListenerClient stream_listener_client(helix_client);
+
client.on<bot::irc::MessageType::Privmsg>(
[&client, &command_loader, &localization, &cfg, &helix_client](
const bot::irc::Message<bot::irc::MessageType::Privmsg> &message) {
@@ -75,6 +78,7 @@ int main(int argc, char *argv[]) {
});
client.run();
+ stream_listener_client.run_thread();
return 0;
}