diff options
| author | ilotterytea <iltsu@alright.party> | 2025-04-18 16:25:28 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-04-18 16:25:28 +0500 |
| commit | 9b1a11e8fee33abb933aa3836faf60cc14deb68d (patch) | |
| tree | b94a90a53f89e62e4aac770d97ead73a97072d76 /bot/src/schemas | |
| parent | 4827c87c986d217a940ce87cc31245440d6b1ab6 (diff) | |
feat: betterttv clients (experimental)
Diffstat (limited to 'bot/src/schemas')
| -rw-r--r-- | bot/src/schemas/stream.cpp | 24 | ||||
| -rw-r--r-- | bot/src/schemas/stream.hpp | 9 |
2 files changed, 29 insertions, 4 deletions
diff --git a/bot/src/schemas/stream.cpp b/bot/src/schemas/stream.cpp index d4f769b..f6df3f4 100644 --- a/bot/src/schemas/stream.cpp +++ b/bot/src/schemas/stream.cpp @@ -18,7 +18,17 @@ namespace bot::schemas { return EventType::STV_EMOTE_DELETE; } else if (type == "7tv_emote_update") { return EventType::STV_EMOTE_UPDATE; - } else { + } +#ifdef BUILD_BETTERTTV + else if (type == "bttv_emote_add") { + return EventType::BTTV_EMOTE_CREATE; + } else if (type == "bttv_emote_delete") { + return EventType::BTTV_EMOTE_DELETE; + } else if (type == "bttv_emote_update") { + return EventType::BTTV_EMOTE_UPDATE; + } +#endif + else { return EventType::CUSTOM; } } @@ -40,7 +50,17 @@ namespace bot::schemas { return "7tv_emote_delete"; } else if (type == STV_EMOTE_UPDATE) { return "7tv_emote_update"; - } else { + } +#ifdef BUILD_BETTERTTV + else if (type == BTTV_EMOTE_CREATE) { + return "bttv_emote_add"; + } else if (type == BTTV_EMOTE_DELETE) { + return "bttv_emote_delete"; + } else if (type == BTTV_EMOTE_UPDATE) { + return "bttv_emote_update"; + } +#endif + else { return "custom"; } } diff --git a/bot/src/schemas/stream.hpp b/bot/src/schemas/stream.hpp index 357d476..348eccb 100644 --- a/bot/src/schemas/stream.hpp +++ b/bot/src/schemas/stream.hpp @@ -10,8 +10,13 @@ namespace bot::schemas { TITLE, GAME, STV_EMOTE_CREATE = 10, - STV_EMOTE_DELETE = 11, - STV_EMOTE_UPDATE = 12, + STV_EMOTE_DELETE, + STV_EMOTE_UPDATE, +#ifdef BUILD_BETTERTTV + BTTV_EMOTE_CREATE, + BTTV_EMOTE_DELETE, + BTTV_EMOTE_UPDATE, +#endif GITHUB = 40, CUSTOM = 99 }; |
