From 5f77c74e4a5ad2b858726c6692a6d05d95904093 Mon Sep 17 00:00:00 2001 From: Caleb Fontenot Date: Fri, 9 Aug 2024 23:01:16 -0500 Subject: [PATCH] Implement OCR --- main.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/main.cjs b/main.cjs index 111e0e5..7be75a5 100644 --- a/main.cjs +++ b/main.cjs @@ -208,6 +208,7 @@ function getMatchingPhrase(inputString, targetCharacter) { checkLoop(message, checkString); (async () => { // Does the message have an attachment? Check the attachment with OCR + console.log(message.attachment); if (message.attachment.contentType.contains("image")) { const worker = await createWorker('eng'); const ret = await worker.recognize(message.attachment.proxyURL);