diff options
| author | ilotterytea <iltsu@alright.party> | 2024-04-21 02:52:11 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-04-21 02:52:11 +0500 |
| commit | 59084cf514386726df20c3b8e334f4f77685b97e (patch) | |
| tree | 10bade0090f2e8d6ea58a26f3daf7d558826eaf4 /src/commands | |
| parent | 744b36aefee654530158f06d682e9e330ffc06c9 (diff) | |
feat: Command interface
Diffstat (limited to 'src/commands')
| -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; + }; + } +} |
