mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Added From: to Translate
This commit is contained in:
@@ -30,9 +30,10 @@ class TranslateCommand extends commando.Command {
|
||||
message.reply(":x: Error! Nothing to translate!");
|
||||
} else {
|
||||
translate(messagecontent, {to: languageto}).then(res => {
|
||||
let languagefrom = res.from.language.iso;
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setColor(0x00AE86)
|
||||
.addField('Input:',
|
||||
.addField('Input (From: ' + languages.entries[languagefrom] + '):',
|
||||
messagecontent)
|
||||
.addField('Translation (To: ' + languages.entries[languageto] + '):',
|
||||
res.text);
|
||||
|
||||
Reference in New Issue
Block a user