summaryrefslogtreecommitdiff
path: root/bot/src/schemas
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-12-13 23:50:45 +0500
committerilotterytea <iltsu@alright.party>2024-12-13 23:50:45 +0500
commit2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 (patch)
tree890df967067371cd5ddb7b83d733db875a253e7a /bot/src/schemas
parentad05411350f1152cc3c86cebb5b8492d34507b33 (diff)
feat: now you can listen to github
Diffstat (limited to 'bot/src/schemas')
-rw-r--r--bot/src/schemas/stream.cpp2
-rw-r--r--bot/src/schemas/stream.hpp2
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 };