More++ debug
This commit is contained in:
parent
b550ce0c8e
commit
5e13938f60
2 changed files with 20 additions and 2 deletions
|
@ -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...");
|
||||
|
|
|
@ -51,13 +51,15 @@ export const MessageSaverPlugin = zeppelinGuildPlugin<MessageSaverPluginType>()(
|
|||
state.debugId = ++debugId;
|
||||
|
||||
if (debugGuilds.includes(pluginData.guild.id)) {
|
||||
console.log(`MessageSaverPlugin::beforeLoad (${state.debugId}): ${pluginData.guild.id}`);
|
||||
console.log(`[!! DEBUG !!] MessageSaverPlugin::beforeLoad (${state.debugId}): ${pluginData.guild.id}`);
|
||||
}
|
||||
},
|
||||
|
||||
beforeUnload(pluginData) {
|
||||
if (debugGuilds.includes(pluginData.guild.id)) {
|
||||
console.log(`MessageSaverPlugin::beforeUnload (${pluginData.state.debugId}): ${pluginData.guild.id}`);
|
||||
console.log(
|
||||
`[!! DEBUG !!] MessageSaverPlugin::beforeUnload (${pluginData.state.debugId}): ${pluginData.guild.id}`,
|
||||
);
|
||||
}
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue