summaryrefslogtreecommitdiff
path: root/src/commands/command.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-21 12:42:03 +0500
committerilotterytea <iltsu@alright.party>2024-04-21 12:42:03 +0500
commit4918d7f255831b55895444f2fcbc9be3c716379d (patch)
tree338b41bb8dd5c2a6286dd057f04d5bed2d865281 /src/commands/command.hpp
parentb4fca15aec26332c1315c8c3030169bbf342da3e (diff)
feat: get_commands method
Diffstat (limited to 'src/commands/command.hpp')
-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;
};