From 6dc08290f8a1be0cfc2d4d947f3bdeda2eb4ff1e Mon Sep 17 00:00:00 2001 From: Mathias Wagner Date: Sun, 29 Oct 2023 14:29:29 +0100 Subject: [PATCH] Created the main.cpp --- src/main.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/main.cpp diff --git a/src/main.cpp b/src/main.cpp new file mode 100644 index 0000000..93b55fb --- /dev/null +++ b/src/main.cpp @@ -0,0 +1,19 @@ +#include +#include "listeners/ready.h" +#include "api/config.h" + +using json = nlohmann::json; + +using namespace dpp; + +int main() { + json configuration = config::read_config(); + + cluster bot(configuration["token"], dpp::i_default_intents | dpp::i_message_content); + + bot.on_ready([&bot](const ready_t &event) { ready::execute(bot, event); }); + + bot.start(dpp::st_wait); + + return 0; +} \ No newline at end of file