diff options
| author | ilotterytea <iltsu@alright.party> | 2024-04-21 12:42:03 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-04-21 12:42:03 +0500 |
| commit | 4918d7f255831b55895444f2fcbc9be3c716379d (patch) | |
| tree | 338b41bb8dd5c2a6286dd057f04d5bed2d865281 | |
| parent | b4fca15aec26332c1315c8c3030169bbf342da3e (diff) | |
feat: get_commands method
| -rw-r--r-- | src/commands/command.hpp | 4 |
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; }; |
