From 079570e71156aee4adf4536ab8e21a4aa34db8e4 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 9 Aug 2024 20:59:08 -0500 Subject: [PATCH] I'm tired of this... --- main.cjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cjs b/main.cjs index e5356ad..26882c2 100644 --- a/main.cjs +++ b/main.cjs @@ -188,11 +188,11 @@ function getMatchingPhrase(inputString, targetCharacter) { const sMap = { '$': 's', '5': 's', 'š': 's', 'ß': 's', 'ʂ': 's', '𝔲': 'u', '𝔰': 's'}; return str.split('').map(char => sMap[char] || char).join(''); } - let checkString = normalize(message.content.toLowerCase().normalize(); - let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy"]; - function checkLoop(message, content) { - console.log("Checking " + content + "..."); - for (let i = 0; i < checkArray.length; i++) { + let checkString = message.content.toLowerCase().normalize(); + let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy"]; + function checkLoop(message, content) { + console.log("Checking " + content + "..."); + for (let i = 0; i < checkArray.length; i++) { if (content.includes(checkArray[i])) { console.log("match!"); message.delete();