From 4918d7f255831b55895444f2fcbc9be3c716379d Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 21 Apr 2024 12:42:03 +0500 Subject: feat: get_commands method --- src/commands/command.hpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/commands/command.hpp') 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::string>> run( const irc::Message &msg); + const std::vector> &get_commands() const { + return this->commands; + }; + private: std::vector> commands; }; -- cgit v1.2.3