Integrated the add command to the slash.cpp listener
This commit is contained in:
parent
43ee8fd999
commit
86e980267b
@ -1,6 +1,8 @@
|
|||||||
#include "slash.h"
|
#include "slash.h"
|
||||||
#include "commands/rules.h"
|
#include "commands/rules.h"
|
||||||
|
#include "commands/add.h"
|
||||||
|
|
||||||
void slash::execute(dpp::cluster &bot, const dpp::slashcommand_t &event) {
|
void slash::execute(sql::Connection &con, dpp::cluster &bot, const dpp::slashcommand_t &event) {
|
||||||
if (event.command.get_command_name() == "rules") return rules::execute(bot, 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);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user