mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2024-11-23 23:57:57 -05:00
ssasddsafdsa
This commit is contained in:
parent
fb95cb30a5
commit
c9b743fdd0
1 changed files with 4 additions and 1 deletions
5
index.js
5
index.js
|
@ -375,8 +375,10 @@ function main() {
|
||||||
bot.chat('Interrupted by console');
|
bot.chat('Interrupted by console');
|
||||||
process.exit();
|
process.exit();
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
bot.once('end', (reason, event) => {
|
function onEnd() {
|
||||||
|
bot.on('end', (reason, event) => {
|
||||||
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
||||||
dcmsg.queue += '\n' + `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);
|
await sleep(200);
|
||||||
main();
|
main();
|
||||||
|
onEnd();
|
||||||
chomenschannel = dcclient.channels.cache.get(chomenschannel);
|
chomenschannel = dcclient.channels.cache.get(chomenschannel);
|
||||||
bot.hashchannel = dcclient.channels.cache.get(hashchannel);
|
bot.hashchannel = dcclient.channels.cache.get(hashchannel);
|
||||||
bot.ownerhashchannel = dcclient.channels.cache.get(ownerhashchannel);
|
bot.ownerhashchannel = dcclient.channels.cache.get(ownerhashchannel);
|
||||||
|
|
Loading…
Reference in a new issue