Implement OCR
This commit is contained in:
parent
b58e7ff564
commit
b7cf3ed133
2
main.cjs
2
main.cjs
@ -209,7 +209,7 @@ function getMatchingPhrase(inputString, targetCharacter) {
|
||||
return;
|
||||
}
|
||||
// Does the message have an attachment? Check the attachment with OCR
|
||||
console.log(message.attachments);
|
||||
//console.log(message.attachments);
|
||||
message.attachments.forEach(i => {
|
||||
if (i.contentType.includes("image")) {
|
||||
(async () => {
|
||||
|
Loading…
Reference in New Issue
Block a user