3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-07-06 18:47:20 +00:00

More++ debug

This commit is contained in:
Dragory 2021-09-04 21:02:55 +03:00
parent b550ce0c8e
commit 5e13938f60
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
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...");