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/schemas/stream.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'bot/src/schemas/stream.cpp') diff --git a/bot/src/schemas/stream.cpp b/bot/src/schemas/stream.cpp index 7671de5..d4f769b 100644 --- a/bot/src/schemas/stream.cpp +++ b/bot/src/schemas/stream.cpp @@ -12,6 +12,12 @@ namespace bot::schemas { return EventType::GAME; } else if (type == "github") { return EventType::GITHUB; + } else if (type == "7tv_emote_add") { + return EventType::STV_EMOTE_CREATE; + } else if (type == "7tv_emote_delete") { + return EventType::STV_EMOTE_DELETE; + } else if (type == "7tv_emote_update") { + return EventType::STV_EMOTE_UPDATE; } else { return EventType::CUSTOM; } @@ -28,6 +34,12 @@ namespace bot::schemas { return "game"; } else if (type == GITHUB) { return "github"; + } else if (type == STV_EMOTE_CREATE) { + return "7tv_emote_add"; + } else if (type == STV_EMOTE_DELETE) { + return "7tv_emote_delete"; + } else if (type == STV_EMOTE_UPDATE) { + return "7tv_emote_update"; } else { return "custom"; } -- cgit v1.2.3