From 8c2e0d8c1faabb76f2e75cddc8b7da2caabf8da6 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Tue, 1 Jul 2025 18:54:10 +0500 Subject: feat: KICK SUPPORT RAAAAH!!!! emojiAngry --- bot/src/stream.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bot/src/stream.hpp') diff --git a/bot/src/stream.hpp b/bot/src/stream.hpp index 3ac71e3..462c2a6 100644 --- a/bot/src/stream.hpp +++ b/bot/src/stream.hpp @@ -3,6 +3,7 @@ #include #include +#include "api/kick.hpp" #include "api/twitch/helix_client.hpp" #include "api/twitch/schemas/stream.hpp" #include "config.hpp" @@ -10,7 +11,7 @@ #include "schemas/stream.hpp" namespace bot::stream { - enum StreamerType { TWITCH }; + enum StreamerType { TWITCH, KICK }; struct StreamerData { int id; @@ -23,16 +24,18 @@ namespace bot::stream { class StreamListenerClient { public: StreamListenerClient(const api::twitch::HelixClient &helix_client, + const api::KickAPIClient &kick_api_client, irc::Client &irc_client, const Configuration &configuration) : helix_client(helix_client), + kick_api_client(kick_api_client), irc_client(irc_client), configuration(configuration) {}; ~StreamListenerClient() = default; void run(); - void listen_channel(const int &id); - void unlisten_channel(const int &id); + void listen_channel(const int &id, const StreamerType &type); + void unlisten_channel(const int &id, const StreamerType &type); private: void check(); @@ -42,6 +45,7 @@ namespace bot::stream { void update_channel_ids(); const api::twitch::HelixClient &helix_client; + const api::KickAPIClient &kick_api_client; irc::Client &irc_client; const Configuration &configuration; -- cgit v1.2.3