diff options
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 |
