mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
adds /translate
This commit is contained in:
parent
e8312f0b32
commit
064845b307
7 changed files with 147 additions and 2 deletions
|
@ -64,8 +64,8 @@ module.exports = {
|
|||
return editOrReply(context, createEmbed("default", context, {
|
||||
description: `${icon("locale")} ${fromFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.from || sourceLanguage] || translate.response.body.language.from || args.from)} ${icon("arrow_right")} ${toFlag} ${pill(TRANSLATE_LANGUAGES[translate.response.body.language.to] || translate.response.body.language.to)}\n${codeblock("ansi", [translate.response.body.translation])}`,
|
||||
footer: {
|
||||
iconUrl: STATICS.google,
|
||||
text: `Google Translator • ${context.application.name}`
|
||||
iconUrl: STATICS.googletranslate,
|
||||
text: `Google Translate • ${context.application.name}`
|
||||
}
|
||||
}))
|
||||
}catch(e){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue