diff options
| -rw-r--r-- | bot_discord.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bot_discord.js b/bot_discord.js index 97405ea..08f180d 100644 --- a/bot_discord.js +++ b/bot_discord.js @@ -112,6 +112,13 @@ client.on('message', (msg) => { }
}
});
+ +process.on('unhandledRejection', function(err, p) { + +log("[X | UNCAUGHT PROMISE] " + err.stack); + +}); + client.login(config.abtoken).catch(function() {
console.log('[X] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com.');
});
|
