mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
limit ocr output
This commit is contained in:
parent
79f795570f
commit
3676dfaf70
2 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue