1
0
Fork 0

fixed it a little

Commando
loicbersier 6 years ago
parent 70df93f344
commit 5cee8a33c1

@ -9,11 +9,6 @@ module.exports = class faceappCommand extends Command {
memberName: 'face', memberName: 'face',
description: `use faceapp to change the face of someone, Here the available filter https://goo.gl/5LLbJJ`, description: `use faceapp to change the face of someone, Here the available filter https://goo.gl/5LLbJJ`,
args: [ args: [
{
key: 'url',
prompt: 'Wich image would you want to process',
type: 'string',
},
{ {
key: 'type', key: 'type',
prompt: 'How the face should change ? (default to female)', prompt: 'How the face should change ? (default to female)',
@ -25,9 +20,9 @@ module.exports = class faceappCommand extends Command {
}); });
} }
async run(message, { url, type }) { async run(message, { type }) {
var Attachment = (message.attachments).array(); let Attachment = (message.attachments).array();
let face = type.toLowerCase(); let face = type.toLowerCase();
let { body } = await superagent.get(Attachment[0].url) let { body } = await superagent.get(Attachment[0].url)

Loading…
Cancel
Save