|
|
|
@ -192,13 +192,13 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
|
|
|
|
let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy", "urssy"];
|
|
|
|
|
function checkLoop(message, content) {
|
|
|
|
|
console.log("Checking " + content + "...");
|
|
|
|
|
for (let i: checkArray) {
|
|
|
|
|
checkArray.forEach(i => {
|
|
|
|
|
if (content.includes(i)) {
|
|
|
|
|
console.log("match!");
|
|
|
|
|
message.delete();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (checkLoop(message, checkString)) {
|
|
|
|
|