From 29412b014854a7c1a74d82b3695b33f6753561f1 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 4 Nov 2023 23:59:10 +0100 Subject: [PATCH] Integrated the channel and coins commands into the slash.cpp listener --- src/listeners/slash.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/listeners/slash.cpp b/src/listeners/slash.cpp index bc061e5..44411c7 100644 --- a/src/listeners/slash.cpp +++ b/src/listeners/slash.cpp @@ -3,10 +3,14 @@ #include "commands/add.h" #include "commands/remove.h" #include "commands/clear.h" +#include "commands/channel.h" +#include "commands/coins.h" void slash::execute(sql::Connection &con, dpp::cluster &bot, const dpp::slashcommand_t &event) { if (event.command.get_command_name() == "rules") return rules::execute(event); if (event.command.get_command_name() == "add") return add::execute(con, bot, event); if (event.command.get_command_name() == "remove") return remove::execute(con, bot, event); if (event.command.get_command_name() == "clear") return clear::execute(con, bot, event); + if (event.command.get_command_name() == "channel") return channel::execute(con, bot, event); + if (event.command.get_command_name() == "coins") return coins::execute(con, bot, event); } \ No newline at end of file