summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee14 <Alee14498@gmail.com>2018-03-26 16:11:02 -0400
committerGitHub <noreply@github.com>2018-03-26 16:11:02 -0400
commita9843a0b71bd104f18e5781a24e398a31d726f37 (patch)
treef08df08e1f9c0ee3ea9ebed4dd60f325a19a4c6e
parent82791e842f26dad7a35935371d1b9c41f6466252 (diff)
downloadAleeBot-a9843a0b71bd104f18e5781a24e398a31d726f37.tar.gz
AleeBot-a9843a0b71bd104f18e5781a24e398a31d726f37.tar.bz2
AleeBot-a9843a0b71bd104f18e5781a24e398a31d726f37.zip
Updates
-rw-r--r--bot_discord.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/bot_discord.js b/bot_discord.js
index 08f180d..872282f 100644
--- a/bot_discord.js
+++ b/bot_discord.js
@@ -112,13 +112,13 @@ client.on('message', (msg) => {
}
}
});
-
-process.on('unhandledRejection', function(err, p) {
-
-log("[X | UNCAUGHT PROMISE] " + err.stack);
-
-});
-
+
+process.on('unhandledRejection', function(err, p) {
+
+console.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.');
});