Integrated the channel and coins commands into the slash.cpp listener
This commit is contained in:
parent
7f7f709236
commit
29412b0148
@ -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);
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user