blob: 033f93a9f7b4db577216824ad5ec6c052bec7709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#pragma once
#include <string>
#include <variant>
#include <vector>
#include "../bundle.hpp"
#include "../commands/command.hpp"
namespace bot {
namespace mod {
class Ping : public command::Command {
std::string get_name() const override { return "ping"; }
std::variant<std::vector<std::string>, std::string> run(
const InstanceBundle &bundle,
const irc::Message<irc::MessageType::Privmsg> &msg) const override {
return "pong";
}
};
}
}
|