|
|
|
@ -181,9 +181,8 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
global.clenseDegeneracy = function clenseDegeneracy(message) {
|
|
|
|
|
let checkString = message.content;
|
|
|
|
|
let checkString = message.content.toLowerCase();
|
|
|
|
|
let checkArray = ["ussy", "u$sy", "us$y", "u$$y"];
|
|
|
|
|
let regex = new RegExp(`^((?:.*?\n)*?.*?)${ '\\b' + abbr + '\\b'}`, 'i');
|
|
|
|
|
function checkLoop(content) {
|
|
|
|
|
for (let i = 0; i < checkArray.length; i++) {
|
|
|
|
|
if (message.content.includes(checkArray[i])) {
|
|
|
|
@ -194,7 +193,7 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
|
|
|
|
}
|
|
|
|
|
checkLoop(checkString);
|
|
|
|
|
console.log(checkString);
|
|
|
|
|
checkString.replace(regex, "");
|
|
|
|
|
checkString.replace(/[^a-zA-Z0-9]/g, '');
|
|
|
|
|
console.log(checkString);
|
|
|
|
|
checkLoop(checkString);
|
|
|
|
|
}
|
|
|
|
|