Updated the main.cpp

This commit is contained in:
Mathias Wagner 2023-10-29 16:34:41 +01:00
parent e4ab822cb1
commit 0bb3c56eec
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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);