From 5cee8a33c116aa2f6b037e8ec69e68bdc205d4d9 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Fri, 12 Oct 2018 15:42:27 +0200 Subject: [PATCH] fixed it a little --- commands/fun/face.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/commands/fun/face.js b/commands/fun/face.js index 910bf573..c72b2ac8 100644 --- a/commands/fun/face.js +++ b/commands/fun/face.js @@ -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)