From 59084cf514386726df20c3b8e334f4f77685b97e Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 21 Apr 2024 02:52:11 +0500 Subject: feat: Command interface --- src/commands/command.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/commands/command.hpp (limited to 'src/commands') 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 +#include +#include + +#include "../irc/message.hpp" + +namespace bot { + namespace command { + class Command { + virtual std::string get_name() = 0; + virtual std::variant, std::string> run( + const irc::Message &msg) = 0; + }; + } +} -- cgit v1.2.3