aboutsummaryrefslogtreecommitdiff
path: root/bot_discord.js
diff options
context:
space:
mode:
Diffstat (limited to 'bot_discord.js')
-rw-r--r--bot_discord.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/bot_discord.js b/bot_discord.js
index d05c086..05c40c8 100644
--- a/bot_discord.js
+++ b/bot_discord.js
@@ -136,6 +136,14 @@ log("[X | UNCAUGHT PROMISE] " + err.stack);
});
+process.on('uncaughtException', function (exception) {
+ log(exception);
+});
+
+client.on("error", error => {
+ log(error);
+});
+
client.login(config.abtoken).catch(function() {
log('[X] Login failed. Please contact Alee14#9928 or email him at alee14498@gmail.com.');