summaryrefslogtreecommitdiff
path: root/bot/src/emotes.hpp
blob: 7493edfff6715697cb0b1b3d778e14810cad5270 (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
#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);
}