From f8668d5607c39c51aef3445257918d7a987a7bb7 Mon Sep 17 00:00:00 2001 From: Alee Date: Mon, 2 Apr 2018 18:19:24 -0400 Subject: Added victor's swearing and new command! --- bot_discord.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'bot_discord.js') 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.'); -- cgit v1.2.3