diff options
| author | ilotterytea <iltsu@alright.party> | 2024-04-21 03:25:12 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-04-21 03:25:12 +0500 |
| commit | b4fca15aec26332c1315c8c3030169bbf342da3e (patch) | |
| tree | f2529eeb93f20520f378049dce90173f2f42ce74 /src/modules | |
| parent | 59084cf514386726df20c3b8e334f4f77685b97e (diff) | |
feat: command loader
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/ping.hpp | 20 |
1 files changed, 20 insertions, 0 deletions
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 <string> +#include <variant> +#include <vector> + +#include "../commands/command.hpp" + +namespace bot { + namespace mod { + class Ping : public command::Command { + std::string get_name() override { return "ping"; } + + std::variant<std::vector<std::string>, std::string> run( + const irc::Message<irc::MessageType::Privmsg> &msg) override { + return "pong"; + } + }; + } +} |
