From 2d40d39264de4eed0bdb9e8e0117a8c1e2f199d3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 13 Dec 2024 23:50:45 +0500 Subject: feat: now you can listen to github --- bot/src/modules/notify.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/src/modules/notify.hpp') 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( 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 = " + -- cgit v1.2.3