summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commands/command.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/commands/command.hpp b/src/commands/command.hpp
index 6efe505..0266301 100644
--- a/src/commands/command.hpp
+++ b/src/commands/command.hpp
@@ -26,6 +26,10 @@ namespace bot {
std::optional<std::variant<std::vector<std::string>, std::string>> run(
const irc::Message<irc::MessageType::Privmsg> &msg);
+ const std::vector<std::unique_ptr<Command>> &get_commands() const {
+ return this->commands;
+ };
+
private:
std::vector<std::unique_ptr<Command>> commands;
};