From e97e518a786b57372df4061e8fa878c9414640bd Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 18 Apr 2025 16:05:36 +0500 Subject: feat: 7TV emote support --- bot/src/emotes.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 bot/src/emotes.hpp (limited to 'bot/src/emotes.hpp') diff --git a/bot/src/emotes.hpp b/bot/src/emotes.hpp new file mode 100644 index 0000000..7493edf --- /dev/null +++ b/bot/src/emotes.hpp @@ -0,0 +1,28 @@ +#pragma once + +#include +#include +#include + +#include "api/twitch/helix_client.hpp" +#include "config.hpp" +#include "irc/client.hpp" +#include "schemas/stream.hpp" + +namespace bot::emotes { + struct EmoteEventBundle { + irc::Client &irc_client; + const api::twitch::HelixClient &helix_client; + emotespp::SevenTVWebsocketClient &stv_ws_client; + const emotespp::SevenTVAPIClient &stv_api_client; + const Configuration &configuration; + }; + + void handle_emote_event(const EmoteEventBundle &bundle, + const schemas::EventType &event_type, + const std::string &channel_name, + const std::optional &author_id, + const emotespp::Emote &emote); + + void create_emote_thread(const EmoteEventBundle *bundle); +} \ No newline at end of file -- cgit v1.2.3