diff options
| author | Alee14 <Alee14498@gmail.com> | 2018-03-26 16:06:02 -0400 |
|---|---|---|
| committer | Alee14 <Alee14498@gmail.com> | 2018-03-26 16:06:02 -0400 |
| commit | 82791e842f26dad7a35935371d1b9c41f6466252 (patch) | |
| tree | cb8e0668f5b4299733b0dadb5e3422d4dfb1b465 | |
| parent | 75e23480cc2fdc4074b1c4f49cd70427d5a07abd (diff) | |
| download | AleeBot-82791e842f26dad7a35935371d1b9c41f6466252.tar.gz AleeBot-82791e842f26dad7a35935371d1b9c41f6466252.tar.bz2 AleeBot-82791e842f26dad7a35935371d1b9c41f6466252.zip | |
Added unhandled rejection
| -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.');
});
|
