From a890ee51beb2f77af3b638635378a189e9040465 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 9 Aug 2024 20:15:57 -0500 Subject: [PATCH] I'm tired of this... --- main.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.cjs b/main.cjs index 3ebc386..534c18a 100644 --- a/main.cjs +++ b/main.cjs @@ -183,13 +183,13 @@ function getMatchingPhrase(inputString, targetCharacter) { global.clenseDegeneracy = function clenseDegeneracy(message) { function normalizeString(str) { // Define a mapping of characters to 's' - const sMap = { '$': 's', '5': 's' }; + const sMap = { '$': 's', '5': 's', 'ลก': 's'}; // Replace similar characters with 's' return str.split('').map(char => sMap[char] || char).join(''); } let checkString = normalizeString(message.content.toLowerCase()); - let checkArray = ["ussy", "ussies"]; + let checkArray = ["ussy", "ussies", "uthy"]; function checkLoop(message, content) { console.log("Checking " + content + "..."); for (let i = 0; i < checkArray.length; i++) {