mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
fix ocr errors
This commit is contained in:
parent
1ea541bfb7
commit
3a846b2c19
3 changed files with 3 additions and 3 deletions
|
@ -45,7 +45,7 @@ module.exports = {
|
|||
return editOrReply(context, { embeds: [createEmbed("error", context, "Unable to retrieve Google Vision API response.")] })
|
||||
}
|
||||
|
||||
if(ocr.response.body.status == 1) return editOrReply(context, { embeds: [createEmbed("warning", context, ocr.response.body.message)] })
|
||||
if(ocr.response.body.status == 1) return editOrReply(context, { embeds: [createEmbed("warning", context, ocr.response.body.text)] })
|
||||
|
||||
try{
|
||||
let translate = await googleTranslate(context, ocr.response.body.text, args.to, args.from)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue