From 52fd4ea8bad5cd7d3940a41df4f8f54b4e72beae Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 7 Dec 2024 17:24:25 +0500 Subject: feat: a special class for command responses --- bot/src/modules/massping.hpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'bot/src/modules/massping.hpp') 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 -#include #include #include "../bundle.hpp" @@ -18,9 +17,8 @@ namespace bot { int get_delay_seconds() const override { return 1; } - std::variant, 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); } }; } -- cgit v1.2.3