aboutsummaryrefslogtreecommitdiff
path: root/bot_discord.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-02 18:19:24 -0400
committerAlee <alee14498@gmail.com>2018-04-02 18:19:24 -0400
commitf8668d5607c39c51aef3445257918d7a987a7bb7 (patch)
tree74401fe540530b89f0540b4df062f32dab0c2804 /bot_discord.js
parent97450778f4bb490c83ce55d5cfc019005d1e92f0 (diff)
downloadAleeBot-f8668d5607c39c51aef3445257918d7a987a7bb7.tar.gz
AleeBot-f8668d5607c39c51aef3445257918d7a987a7bb7.tar.bz2
AleeBot-f8668d5607c39c51aef3445257918d7a987a7bb7.zip
Added victor's swearing and new command!
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.');