diff options
| author | ilotterytea <iltsu@alright.party> | 2024-12-13 23:50:45 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-12-13 23:50:45 +0500 |
| commit | 2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 (patch) | |
| tree | 890df967067371cd5ddb7b83d733db875a253e7a /bot/src/modules/notify.hpp | |
| parent | ad05411350f1152cc3c86cebb5b8492d34507b33 (diff) | |
feat: now you can listen to github
Diffstat (limited to 'bot/src/modules/notify.hpp')
| -rw-r--r-- | bot/src/modules/notify.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/src/modules/notify.hpp b/bot/src/modules/notify.hpp index a25b34f..35b4d36 100644 --- a/bot/src/modules/notify.hpp +++ b/bot/src/modules/notify.hpp @@ -55,7 +55,7 @@ namespace bot { auto channels = bundle.helix_client.get_users({target}); api::twitch::schemas::User channel; - if (channels.empty() && type != schemas::EventType::CUSTOM) { + if (channels.empty() && type < schemas::EventType::GITHUB) { throw ResponseException<ResponseError::NOT_FOUND>( request, bundle.localization, t); } @@ -63,7 +63,7 @@ namespace bot { pqxx::work work(request.conn); std::string query; - if (type != schemas::CUSTOM) { + if (type < schemas::GITHUB) { channel = channels[0]; query = "SELECT id FROM events WHERE channel_id = " + |
