fixed it a little

This commit is contained in:
loicbersier 2018-10-12 15:42:27 +02:00
parent 70df93f344
commit 5cee8a33c1

View file

@ -9,11 +9,6 @@ module.exports = class faceappCommand extends Command {
memberName: 'face',
description: `use faceapp to change the face of someone, Here the available filter https://goo.gl/5LLbJJ`,
args: [
{
key: 'url',
prompt: 'Wich image would you want to process',
type: 'string',
},
{
key: 'type',
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 { body } = await superagent.get(Attachment[0].url)