diff --git a/index.js b/index.js index a74bb1c..cad703e 100644 --- a/index.js +++ b/index.js @@ -48,6 +48,7 @@ const { Intents, MessageEmbed, } = require('discord.js'); +const { channel } = require('diagnostics_channel'); // Create Discord intentions, required in v13 const intents = new Intents(['GUILDS', 'GUILD_MESSAGES']); // Create Discord client @@ -380,7 +381,7 @@ function main() { function onEnd() { bot.on('end', (reason, event) => { console.log(`Disconnected (${event} event): ${util.inspect(reason)}`); - dcmsg.queue += '\n' + `Disconnected (${event} event): ${util.inspect(reason)}`; + channel.send(`Disconnected (${event} event): ${util.inspect(reason)}`); let timeout = 1000;