diff options
Diffstat (limited to 'bot/src/stream.hpp')
| -rw-r--r-- | bot/src/stream.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
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 <set> #include <vector> +#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; |
