I'm tired of this...

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-08-09 20:59:08 -05:00
parent 2bf0653d90
commit 079570e711

View File

@ -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();