mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-06 22:44:32 +02:00
.then added for process.exit on disconnect
This commit is contained in:
@@ -152,8 +152,7 @@ client.on('guildDelete', guild => {
|
||||
});
|
||||
|
||||
client.on('disconnect', () => {
|
||||
console.log('[Disconnect] A disconnection has occurred. Attempting to reboot...');
|
||||
process.exit(0);
|
||||
console.log('[Disconnect] A disconnection has occurred. Attempting to reboot...').then(p => process.exit(0));
|
||||
});
|
||||
|
||||
client.once('ready', () => {
|
||||
|
||||
Reference in New Issue
Block a user