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