aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/aleebot.js b/aleebot.js
index e0c53d6..92da58f 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -203,6 +203,9 @@ client.on("message", function(message){
}
});
+ process.on('unhandledRejection', function(err, p) {
+ console.log("[ERROR | UNCAUGHT PROMISE] " + err.stack);
+});
client.login (config.token).catch(function() {
console.log("[ERROR] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com.");