Updated the main.cpp
This commit is contained in:
parent
e4ab822cb1
commit
0bb3c56eec
@ -1,5 +1,6 @@
|
||||
#include <dpp/dpp.h>
|
||||
#include "listeners/ready.h"
|
||||
#include "listeners/slash.h"
|
||||
#include "api/config.h"
|
||||
|
||||
#define CONFIG_PATH "config.json"
|
||||
@ -13,6 +14,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
cluster bot(configuration["token"], dpp::i_default_intents | dpp::i_message_content);
|
||||
|
||||
bot.on_slashcommand([&bot](const slashcommand_t &event) { slash::execute(bot, event); });
|
||||
|
||||
bot.on_ready([&bot](const ready_t &event) { ready::execute(bot, event); });
|
||||
|
||||
bot.start(dpp::st_wait);
|
||||
|
Loading…
x
Reference in New Issue
Block a user