From 94fede466d8d77f53e5c49215fc8ad99a30610f9 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 2 Jul 2025 03:32:50 +0500 Subject: feat: silent mode in features --- bot/src/schemas/channel.cpp | 4 ++++ bot/src/schemas/channel.hpp | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'bot') diff --git a/bot/src/schemas/channel.cpp b/bot/src/schemas/channel.cpp index 540b7c0..ee0597b 100644 --- a/bot/src/schemas/channel.cpp +++ b/bot/src/schemas/channel.cpp @@ -9,6 +9,8 @@ namespace bot::schemas { return MARKOV_RESPONSES; } else if (value == "random_markov_responses") { return RANDOM_MARKOV_RESPONSES; + } else if (value == "silent_mode") { + return SILENT_MODE; } else { return std::nullopt; } @@ -21,6 +23,8 @@ namespace bot::schemas { return "markov_responses"; case RANDOM_MARKOV_RESPONSES: return "random_markov_responses"; + case SILENT_MODE: + return "silent_mode"; default: std::nullopt; } diff --git a/bot/src/schemas/channel.hpp b/bot/src/schemas/channel.hpp index a8979ec..c2ac5e2 100644 --- a/bot/src/schemas/channel.hpp +++ b/bot/src/schemas/channel.hpp @@ -50,9 +50,13 @@ namespace bot::schemas { std::optional opted_out_at; }; - enum ChannelFeature { MARKOV_RESPONSES, RANDOM_MARKOV_RESPONSES }; - const std::vector FEATURES = {MARKOV_RESPONSES, - RANDOM_MARKOV_RESPONSES}; + enum ChannelFeature { + MARKOV_RESPONSES, + RANDOM_MARKOV_RESPONSES, + SILENT_MODE + }; + const std::vector FEATURES = { + MARKOV_RESPONSES, RANDOM_MARKOV_RESPONSES, SILENT_MODE}; std::optional string_to_channel_feature( const std::string &value); std::optional channelfeature_to_string( -- cgit v1.2.3