I'm tired of this...
This commit is contained in:
parent
db20a05fa8
commit
254e469986
3
main.cjs
3
main.cjs
@ -183,6 +183,7 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
|||||||
global.clenseDegeneracy = function clenseDegeneracy(message) {
|
global.clenseDegeneracy = function clenseDegeneracy(message) {
|
||||||
let checkString = message.content;
|
let checkString = message.content;
|
||||||
let checkArray = ["ussy", "u$sy", "us$y", "u$$y"];
|
let checkArray = ["ussy", "u$sy", "us$y", "u$$y"];
|
||||||
|
let regex = new RegExp(`^((?:.*?\n)*?.*?)${ '\\b' + abbr + '\\b'}`, 'i');
|
||||||
function checkLoop(content) {
|
function checkLoop(content) {
|
||||||
for (let i = 0; i < checkArray.length; i++) {
|
for (let i = 0; i < checkArray.length; i++) {
|
||||||
if (message.content.includes(checkArray[i])) {
|
if (message.content.includes(checkArray[i])) {
|
||||||
@ -193,7 +194,7 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
|||||||
}
|
}
|
||||||
checkLoop(checkString);
|
checkLoop(checkString);
|
||||||
console.log(checkString);
|
console.log(checkString);
|
||||||
checkString.replace(/[^A-Z0-9]+/ig, "");
|
checkString.replace(regex, "");
|
||||||
console.log(checkString);
|
console.log(checkString);
|
||||||
checkLoop(checkString);
|
checkLoop(checkString);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user