From bad59576f0466c2863c589fe9b031176004691f7 Mon Sep 17 00:00:00 2001 From: dragonfire535 Date: Thu, 16 Mar 2017 11:13:07 -0400 Subject: [PATCH] Process Exit on Disconnect --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index becdf4b4..38d32100 100644 --- a/index.js +++ b/index.js @@ -178,6 +178,10 @@ client.on('guildDelete', guild => { }); }); +client.on('disconnect', () => { + process.exit(0); +}); + client.once('ready', () => { console.log('[Ready] Logged in!'); client.user.setGame(";help | dragonfire535");