Created the main.cpp

This commit is contained in:
Mathias Wagner 2023-10-29 14:29:29 +01:00
parent 29ab86365f
commit 6dc08290f8
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

19
src/main.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <dpp/dpp.h>
#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;
}