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

Remove some debug code

This commit is contained in:
Dragory 2021-09-11 19:21:27 +03:00
parent e6694f3751
commit f5d1bbee90
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
4 changed files with 0 additions and 66 deletions

View file

@ -21,9 +21,6 @@ const defaultOptions: PluginOptions<MessageSaverPluginType> = {
],
};
let debugId = 0;
const debugGuilds = ["877581055920603238", "348468156597010432", "134286179121102848"];
export const MessageSaverPlugin = zeppelinGuildPlugin<MessageSaverPluginType>()({
name: "message_saver",
showInDocs: false,
@ -48,18 +45,5 @@ export const MessageSaverPlugin = zeppelinGuildPlugin<MessageSaverPluginType>()(
beforeLoad(pluginData) {
const { state, guild } = pluginData;
state.savedMessages = GuildSavedMessages.getGuildInstance(guild.id);
state.debugId = ++debugId;
if (debugGuilds.includes(pluginData.guild.id)) {
console.log(`[!! DEBUG !!] MessageSaverPlugin::beforeLoad (${state.debugId}): ${pluginData.guild.id}`);
}
},
beforeUnload(pluginData) {
if (debugGuilds.includes(pluginData.guild.id)) {
console.log(
`[!! DEBUG !!] MessageSaverPlugin::beforeUnload (${pluginData.state.debugId}): ${pluginData.guild.id}`,
);
}
},
});