blob: 724beab309d86bb507d003f43bb56523cb5671a2 (
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 command::Request &request) const override {
return "pong";
}
};
}
}
|