From 1134c8316e5ee445567f9bf225e9fb9c2631b4dc Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 14 Dec 2024 23:23:12 +0500 Subject: feat: settings command --- bot/src/localization/line_id.cpp | 10 ++++++++++ bot/src/localization/line_id.hpp | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) (limited to 'bot/src/localization') diff --git a/bot/src/localization/line_id.cpp b/bot/src/localization/line_id.cpp index dabd85a..7f17378 100644 --- a/bot/src/localization/line_id.cpp +++ b/bot/src/localization/line_id.cpp @@ -96,6 +96,16 @@ namespace bot { return LineId::ChattersResponse; } + else if (str == "set.locale") { + return LineId::SetLocale; + } else if (str == "set.prefix") { + return LineId::SetPrefix; + } else if (str == "set.feature.disabled") { + return LineId::SetFeatureDisabled; + } else if (str == "set.feature.enabled") { + return LineId::SetFeatureEnabled; + } + else { return std::nullopt; } diff --git a/bot/src/localization/line_id.hpp b/bot/src/localization/line_id.hpp index 6d7729e..e9b90c0 100644 --- a/bot/src/localization/line_id.hpp +++ b/bot/src/localization/line_id.hpp @@ -50,7 +50,12 @@ namespace bot { HelpResponse, - ChattersResponse + ChattersResponse, + + SetLocale, + SetPrefix, + SetFeatureDisabled, + SetFeatureEnabled }; std::optional string_to_line_id(const std::string &str); -- cgit v1.2.3