Implement OCR
This commit is contained in:
parent
82e8f2387f
commit
99c8cef7a1
4
main.cjs
4
main.cjs
@ -192,13 +192,13 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
|||||||
let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy", "urssy"];
|
let checkArray = ["ussy", "ussies", "uthy", "yssu", "suuy", "urssy"];
|
||||||
function checkLoop(message, content) {
|
function checkLoop(message, content) {
|
||||||
console.log("Checking " + content + "...");
|
console.log("Checking " + content + "...");
|
||||||
for (let i: checkArray) {
|
checkArray.forEach(i => {
|
||||||
if (content.includes(i)) {
|
if (content.includes(i)) {
|
||||||
console.log("match!");
|
console.log("match!");
|
||||||
message.delete();
|
message.delete();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (checkLoop(message, checkString)) {
|
if (checkLoop(message, checkString)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user