limit ocr output

This commit is contained in:
derpystuff 2023-10-28 21:07:14 +02:00
parent 79f795570f
commit 3676dfaf70
2 changed files with 2 additions and 2 deletions

View file

@ -34,7 +34,7 @@ module.exports = {
thumbnail: {
url: image
},
description: codeblock("ansi", [ocr.response.body.text]),
description: codeblock("ansi", [ocr.response.body.text.substr(0,4000)]),
footer: {
iconUrl: STATICS.google,
text: `Google Cloud Vision • ${context.application.name} • Took ${ocr.timings}s`