diff options
Diffstat (limited to 'src/modules/ping.hpp')
| -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"; + } + }; + } +} |
