From 5e4453849e49918c86262ac33a7f69392162dc5d Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sat, 4 Nov 2023 23:59:53 +0100 Subject: [PATCH] Added a logger to the main.cpp --- src/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 7442f7d..920eee2 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); });