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'};
|
const sMap = { '$': 's', '5': 's', 'š': 's', 'ß': 's', 'ʂ': 's', '𝔲': 'u', '𝔰': 's'};
|
||||||
return str.split('').map(char => sMap[char] || char).join('');
|
return str.split('').map(char => sMap[char] || char).join('');
|
||||||
}
|
}
|
||||||
let checkString = normalize(message.content.toLowerCase().normalize();
|
let checkString = message.content.toLowerCase().normalize();
|
||||||
let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy"];
|
let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy"];
|
||||||
function checkLoop(message, content) {
|
function checkLoop(message, content) {
|
||||||
console.log("Checking " + content + "...");
|
console.log("Checking " + content + "...");
|
||||||
for (let i = 0; i < checkArray.length; i++) {
|
for (let i = 0; i < checkArray.length; i++) {
|
||||||
if (content.includes(checkArray[i])) {
|
if (content.includes(checkArray[i])) {
|
||||||
console.log("match!");
|
console.log("match!");
|
||||||
message.delete();
|
message.delete();
|
||||||
|
Loading…
Reference in New Issue
Block a user