From c6c9337e8bed58b40f34e635f506b45deddca291 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 9 Aug 2024 23:14:30 -0500 Subject: [PATCH] Implement OCR --- main.cjs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.cjs b/main.cjs index 202e802..0fa9ae8 100644 --- a/main.cjs +++ b/main.cjs @@ -217,13 +217,13 @@ function getMatchingPhrase(inputString, targetCharacter) { checkString = ret.data.text; await worker.terminate(); })(); - if (checkLoop(message, checkString)) { - return; - } + console.log("Checking OCR contents..."); + if (checkLoop(message, checkString)) { + return; + } checkString = checkString.replace(/[^a-zA-Z0-9]/g, ''); checkLoop(message, checkString); - } - + } }); } /*