#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" int main () { 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); }