From de0324c854f76ca742056fdcdfcd2b4dc4482221 Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Thu, 9 Jun 2022 18:31:34 -0400 Subject: [PATCH] Error handling broke things --- main.js | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/main.js b/main.js index 64dac9b..2dd9a0a 100644 --- a/main.js +++ b/main.js @@ -191,14 +191,8 @@ client.on('messageCreate', message => { if (lowerContent.includes('ligma')) message.reply('ligma balls, goteem'); // Break the message down into its components and analyze it - try { - const commandData = fn.dot.getCommandData(message); - if(isDev) console.log(commandData); - } catch(error) { - console.error(error); - message.reply('There was an error trying to execute that command.'); - } - + const commandData = fn.dot.getCommandData(message); + console.log(commandData); if (commandData.isValid && commandData.isCommand) { try { @@ -212,9 +206,4 @@ client.on('messageCreate', message => { return; }); -process.on("uncaughtException", err => { - console.error('There was an uncaught error: ', err); - process.exit(1); -}); - client.login(token); \ No newline at end of file