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`

View file

@ -54,7 +54,7 @@ module.exports = {
let toFlag = TRANSLATE_LANGUAGE_MAPPINGS[translate.response.body.language.to] || ''
return editOrReply(context, createEmbed("default", context, {
description: `${icon("locale")} ${fromFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.from || args.from])} ${icon("arrow_right")} ${toFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.to])}\n${codeblock("ansi", [translate.response.body.translation])}`,
description: `${icon("locale")} ${fromFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.from || args.from])} ${icon("arrow_right")} ${toFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.to])}\n${codeblock("ansi", [translate.response.body.translation.substr(0,4000)])}`,
thumbnail: {
url: image
},