summaryrefslogtreecommitdiff
path: root/bot/src/modules/massping.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-12-07 17:24:25 +0500
committerilotterytea <iltsu@alright.party>2024-12-07 17:24:25 +0500
commit52fd4ea8bad5cd7d3940a41df4f8f54b4e72beae (patch)
tree28f13892e7da8ec023f4b4d1113bef88795724ca /bot/src/modules/massping.hpp
parente604d12282b8fa9f9023bb79161b36c9a8b0be55 (diff)
feat: a special class for command responses
Diffstat (limited to 'bot/src/modules/massping.hpp')
-rw-r--r--bot/src/modules/massping.hpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/bot/src/modules/massping.hpp b/bot/src/modules/massping.hpp
index 2957e34..23d67d3 100644
--- a/bot/src/modules/massping.hpp
+++ b/bot/src/modules/massping.hpp
@@ -1,7 +1,6 @@
#pragma once
#include <string>
-#include <variant>
#include <vector>
#include "../bundle.hpp"
@@ -18,9 +17,8 @@ namespace bot {
int get_delay_seconds() const override { return 1; }
- std::variant<std::vector<std::string>, std::string> run(
- const InstanceBundle &bundle,
- const command::Request &request) const override {
+ command::Response run(const InstanceBundle &bundle,
+ const command::Request &request) const override {
auto chatters = bundle.helix_client.get_chatters(
request.channel.get_alias_id(), bundle.irc_client.get_bot_id());
@@ -55,7 +53,7 @@ namespace bot {
msgs2.push_back(base + m);
}
- return msgs2;
+ return command::Response(msgs2);
}
};
}