adds /translate

This commit is contained in:
bignutty 2024-11-05 22:01:09 +01:00
parent e8312f0b32
commit 064845b307
7 changed files with 147 additions and 2 deletions

View file

@ -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){