From 64ee8f8e7639c1e84a7e68d45e2aceec5299a4d6 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 2 May 2024 00:05:53 +0500 Subject: feat: client for twitch api --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index d617769..842e093 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ #include #include +#include "api/twitch/helix_client.hpp" #include "bundle.hpp" #include "commands/command.hpp" #include "config.hpp" @@ -57,6 +58,9 @@ int main(int argc, char *argv[]) { work.commit(); conn.close(); + bot::api::twitch::HelixClient helix_client(cfg.bot_password, + cfg.bot_client_id); + client.on( [&client, &command_loader, &localization, &cfg](const bot::irc::Message &message) { -- cgit v1.2.3