diff options
| -rw-r--r-- | src/commands/command.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/commands/command.hpp b/src/commands/command.hpp new file mode 100644 index 0000000..6e05779 --- /dev/null +++ b/src/commands/command.hpp @@ -0,0 +1,15 @@ +#include <string> +#include <variant> +#include <vector> + +#include "../irc/message.hpp" + +namespace bot { + namespace command { + class Command { + virtual std::string get_name() = 0; + virtual std::variant<std::vector<std::string>, std::string> run( + const irc::Message<irc::MessageType::Privmsg> &msg) = 0; + }; + } +} |
