I'm tired of this...
This commit is contained in:
parent
2bf0653d90
commit
079570e711
10
main.cjs
10
main.cjs
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user