Added a logger to the main.cpp

This commit is contained in:
Mathias Wagner 2023-11-04 23:59:53 +01:00
parent 961ae9a725
commit 5e4453849e
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -20,6 +20,8 @@ int main(int argc, char **argv) {
cluster bot(configuration["token"], dpp::i_default_intents | dpp::i_message_content);
bot.on_log(dpp::utility::cout_logger());
bot.on_slashcommand([&bot, &con](const slashcommand_t &event) { slash::execute(*con, bot, event); });
bot.on_message_create([&bot, &con](const message_create_t &event) { global::execute(*con, bot, event); });