From a19869617c0a7f0ec80001b68ad4c251a0623673 Mon Sep 17 00:00:00 2001 From: Abheek Dhawan Date: Thu, 20 May 2021 21:07:44 -0500 Subject: [PATCH] Remove message event but not functions --- bot/awesomescibo.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/bot/awesomescibo.js b/bot/awesomescibo.js index d0a6b06..82988c1 100755 --- a/bot/awesomescibo.js +++ b/bot/awesomescibo.js @@ -512,27 +512,6 @@ async function rounds(action, interaction) { } } -client.on("message", async (message) => { - if (message.author.bot) { - return; - } - const formattedMessage = message.content.toLowerCase().replace(/ /g, ""); - if (formattedMessage.startsWith("dobe")) { - // Bot prefix is "do be" - switch (formattedMessage) { - case "dobescoring": // Start scoring - startScoring(message); - break; - case "dobehappy": // Send happy message - dontWorryBeHappy(message); - break; - case "dobeservers": // Shows number of servers bot is in - showServerNumber(message); - break; - } - } -}); - client.on("interaction", interaction => { // If the interaction isn't a slash command, return if (!interaction.isCommand()) return;