diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-18 16:05:36 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-18 16:05:36 +0500 |
| commit | e97e518a786b57372df4061e8fa878c9414640bd (patch) | |
| tree | 58c7d54143292b1bbed4997419afea41c4812649 /bot/src/emotes.hpp | |
| parent | ae030f0ba30b1cd4d10780d9fc2d7cad925b6976 (diff) | |
feat: 7TV emote support
Diffstat (limited to 'bot/src/emotes.hpp')
| -rw-r--r-- | bot/src/emotes.hpp | 28 |
1 files changed, 28 insertions, 0 deletions
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 <emotespp/seventv.hpp> +#include <optional> +#include <string> + +#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<std::string> &author_id, + const emotespp::Emote &emote); + + void create_emote_thread(const EmoteEventBundle *bundle); +}
\ No newline at end of file |
