Added a logger to the main.cpp
This commit is contained in:
parent
961ae9a725
commit
5e4453849e
@ -20,6 +20,8 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
cluster bot(configuration["token"], dpp::i_default_intents | dpp::i_message_content);
|
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_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); });
|
bot.on_message_create([&bot, &con](const message_create_t &event) { global::execute(*con, bot, event); });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user