summaryrefslogtreecommitdiff
path: root/src/commands/command.hpp
blob: 6e057798fa3ae265955a57ff7476b8dabb8b5f25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
    };
  }
}