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;
|
return;
|
||||||
}
|
}
|
||||||
// Does the message have an attachment? Check the attachment with OCR
|
// Does the message have an attachment? Check the attachment with OCR
|
||||||
console.log(message.attachments);
|
//console.log(message.attachments);
|
||||||
message.attachments.forEach(i => {
|
message.attachments.forEach(i => {
|
||||||
if (i.contentType.includes("image")) {
|
if (i.contentType.includes("image")) {
|
||||||
(async () => {
|
(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user