From b4fca15aec26332c1315c8c3030169bbf342da3e Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 21 Apr 2024 03:25:12 +0500 Subject: feat: command loader --- src/modules/ping.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 src/modules/ping.hpp (limited to 'src/modules/ping.hpp') diff --git a/src/modules/ping.hpp b/src/modules/ping.hpp new file mode 100644 index 0000000..cf59d66 --- /dev/null +++ b/src/modules/ping.hpp @@ -0,0 +1,20 @@ +#pragma once + +#include +#include +#include + +#include "../commands/command.hpp" + +namespace bot { + namespace mod { + class Ping : public command::Command { + std::string get_name() override { return "ping"; } + + std::variant, std::string> run( + const irc::Message &msg) override { + return "pong"; + } + }; + } +} -- cgit v1.2.3