ssasddsafdsa

This commit is contained in:
ChomeNS 2022-08-19 07:20:31 +07:00
parent fb95cb30a5
commit c9b743fdd0

View file

@ -375,8 +375,10 @@ function main() {
bot.chat('Interrupted by console');
process.exit();
});
}
bot.once('end', (reason, event) => {
function onEnd() {
bot.on('end', (reason, event) => {
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
dcmsg.queue += '\n' + `Disconnected (${event} event): ${util.inspect(reason)}`;
@ -431,6 +433,7 @@ dcclient.on('ready', async () => {
}
await sleep(200);
main();
onEnd();
chomenschannel = dcclient.channels.cache.get(chomenschannel);
bot.hashchannel = dcclient.channels.cache.get(hashchannel);
bot.ownerhashchannel = dcclient.channels.cache.get(ownerhashchannel);