aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
Diffstat (limited to 'aleebot.js')
-rw-r--r--aleebot.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/aleebot.js b/aleebot.js
index 8bc679c..1620d38 100644
--- a/aleebot.js
+++ b/aleebot.js
@@ -161,6 +161,10 @@ client.on('message', 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.");
});