3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-23 17:45:03 +00:00

More++ debug

This commit is contained in:
Dragory 2021-09-04 21:02:55 +03:00
parent b68fa48455
commit e8f256fcba
2 changed files with 20 additions and 2 deletions

View file

@ -300,6 +300,22 @@ connect().then(async () => {
startUptimeCounter();
});
const debugGuilds = ["877581055920603238", "348468156597010432", "134286179121102848"];
bot.on("guildLoaded", guildId => {
if (!debugGuilds.includes(guildId)) {
return;
}
console.log(`[!! DEBUG !!] LOADED GUILD ${guildId}`);
});
bot.on("guildUnloaded", guildId => {
if (!debugGuilds.includes(guildId)) {
return;
}
console.log(`[!! DEBUG !!] UNLOADED GUILD ${guildId}`);
});
bot.initialize();
logger.info("Bot Initialized");
logger.info("Logging in...");