aboutsummaryrefslogtreecommitdiff
path: root/aleebot.js
diff options
context:
space:
mode:
authorAlee14 <alee14498@gmail.com>2017-06-13 12:28:31 -0400
committerAlee14 <alee14498@gmail.com>2017-06-13 12:28:31 -0400
commitaa745d7a3bd15155853de5e53ac9292f93a533eb (patch)
tree4c955a873d89f7af097de8db8812f2f9ea67418f /aleebot.js
parent15d2513ca69fc92d50696876ce9492612e691d74 (diff)
downloadAleeBot-aa745d7a3bd15155853de5e53ac9292f93a533eb.tar.gz
AleeBot-aa745d7a3bd15155853de5e53ac9292f93a533eb.tar.bz2
AleeBot-aa745d7a3bd15155853de5e53ac9292f93a533eb.zip
Updating things
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.");
});