Something went wrong. Try again.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738#include "blacklist.hpp"#include "common.hpp"#include "slashcommands.hpp"#include "startup.hpp"#include "utils.hpp"
#define PROJECT_NAME "lunarnext"#define PROJECT_VERSION "1.4.1"
intmain (){ loadDotenv ();
const char *BOT_TOKEN = std::getenv ("BOT_TOKEN"); uint32_t intents = dpp::i_all_intents;
dpp::cluster bot (BOT_TOKEN, intents);
bot.on_log (dpp::utility::cout_logger ());
bot.on_slashcommand ([&bot] (const dpp::slashcommand_t &event) { runSlashCommand (bot, event); });
bot.on_guild_member_add ([&bot] (const dpp::guild_member_add_t &event) { runBlacklist (bot, event); });
bot.on_ready ([&bot] (const dpp::ready_t &event) { (void)event;
runStartup (PROJECT_NAME, PROJECT_VERSION, bot); });
bot.start (dpp::st_wait);}