From 0bb3c56eec5ddcbd11c060fbe343ee483c6e9d33 Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 29 Oct 2023 16:34:41 +0100 Subject: [PATCH] Updated the main.cpp --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 1afc531..45f5646 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,6 @@ #include #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);