summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-05-13 22:52:40 +0500
committerilotterytea <iltsu@alright.party>2024-05-13 22:52:40 +0500
commit2563c1da7d24a0674d68827b03ba6f4765a1f9fb (patch)
treedc4aee0d4a9c1b6dd38ac4379071287dacb4fc69
parent5b921c9a983b3f2588c0e151c28b26e45cf95f87 (diff)
upd: renamed "delete" to "remove" because its sql keyword
-rw-r--r--src/modules/custom_command.hpp4
-rw-r--r--src/modules/timer.hpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/custom_command.hpp b/src/modules/custom_command.hpp
index 0757a20..50b3692 100644
--- a/src/modules/custom_command.hpp
+++ b/src/modules/custom_command.hpp
@@ -18,7 +18,7 @@ namespace bot {
}
std::vector<std::string> get_subcommand_ids() const override {
- return {"new", "delete"};
+ return {"new", "remove"};
}
std::variant<std::vector<std::string>, std::string> run(
@@ -72,7 +72,7 @@ namespace bot {
.get_formatted_line(request, loc::LineId::CustomcommandNew,
{name})
.value();
- } else if (subcommand_id == "delete") {
+ } else if (subcommand_id == "remove") {
if (cmds.empty()) {
throw ResponseException<ResponseError::NOT_FOUND>(
request, bundle.localization, name);
diff --git a/src/modules/timer.hpp b/src/modules/timer.hpp
index 03e319e..36c3982 100644
--- a/src/modules/timer.hpp
+++ b/src/modules/timer.hpp
@@ -18,7 +18,7 @@ namespace bot {
}
std::vector<std::string> get_subcommand_ids() const override {
- return {"new", "delete"};
+ return {"new", "remove"};
}
std::variant<std::vector<std::string>, std::string> run(
@@ -89,7 +89,7 @@ namespace bot {
return bundle.localization
.get_formatted_line(request, loc::LineId::TimerNew, {name})
.value();
- } else if (subcommand_id == "delete") {
+ } else if (subcommand_id == "remove") {
if (timers.empty()) {
throw ResponseException<ResponseError::NOT_FOUND>(
request, bundle.localization, name);