diff options
Diffstat (limited to 'bot/src/schemas')
| -rw-r--r-- | bot/src/schemas/stream.cpp | 2 | ||||
| -rw-r--r-- | bot/src/schemas/stream.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/bot/src/schemas/stream.cpp b/bot/src/schemas/stream.cpp index 6ef10dc..34d170a 100644 --- a/bot/src/schemas/stream.cpp +++ b/bot/src/schemas/stream.cpp @@ -10,6 +10,8 @@ namespace bot::schemas { return EventType::TITLE; } else if (type == "game") { return EventType::GAME; + } else if (type == "github") { + return EventType::GITHUB; } else { return EventType::CUSTOM; } diff --git a/bot/src/schemas/stream.hpp b/bot/src/schemas/stream.hpp index a636ea5..0811561 100644 --- a/bot/src/schemas/stream.hpp +++ b/bot/src/schemas/stream.hpp @@ -3,7 +3,7 @@ #include <string> namespace bot::schemas { - enum EventType { LIVE, OFFLINE, TITLE, GAME, CUSTOM = 99 }; + enum EventType { LIVE, OFFLINE, TITLE, GAME, GITHUB = 10, CUSTOM = 99 }; EventType string_to_event_type(const std::string &type); enum EventFlag { MASSPING }; |
