From 77f80529327165fc60f141311a21de0cf70ac11d Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sun, 7 Oct 2018 21:28:23 -0400 Subject: [PATCH] Remove unhandledRejection event --- Xiao.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Xiao.js b/Xiao.js index 0816f316..f3063d02 100644 --- a/Xiao.js +++ b/Xiao.js @@ -60,8 +60,3 @@ client.on('warn', warn => client.logger.warn(warn)); client.on('commandError', (command, err) => client.logger.error(`[COMMAND:${command.name}]\n${err.stack}`)); client.login(XIAO_TOKEN); - -process.on('unhandledRejection', err => { - client.logger.error(`[FATAL] UNHANDLED PROMISE REJECTION:\n${err.stack}`); - process.exit(1); -});