blob: 3e6d9f89cee53beefda99c3254639d2721220429 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include <emotespp/betterttv.hpp>
#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;
#ifdef BUILD_BETTERTTV
emotespp::BetterTTVWebsocketClient &bttv_ws_client;
#endif
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);
}
|