aboutsummaryrefslogtreecommitdiff
path: root/bot_discord.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot_discord.js')
-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.');
});