Implement OCR

This commit is contained in:
Chloe Fontenot 🏳️‍⚧️ 2024-08-09 23:20:57 -05:00
parent 65476f2bde
commit f901552f80

View File

@ -223,8 +223,8 @@ function getMatchingPhrase(inputString, targetCharacter) {
checkString = checkString.replace(/[^a-zA-Z0-9]/g, ''); checkString = checkString.replace(/[^a-zA-Z0-9]/g, '');
checkLoop(message, checkString); checkLoop(message, checkString);
})(); })();
});
} }
});
} }
/* /*
Main bot logic. Check for abbreviations by splitting the message at any non-word characters, then if we find a match, create a new array, replace the abbreviation with the phrase, then call replyMessage() and reply to the original message with the corrected one. Main bot logic. Check for abbreviations by splitting the message at any non-word characters, then if we find a match, create a new array, replace the abbreviation with the phrase, then call replyMessage() and reply to the original message with the corrected one.