From b1dc6146678bcc158851bd2f07c190442bd1626a Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 10 Oct 2018 15:46:00 +0200 Subject: [PATCH] woops i forgot that --- commands/fun/face.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/commands/fun/face.js b/commands/fun/face.js index 111a9b72..8646c6dd 100644 --- a/commands/fun/face.js +++ b/commands/fun/face.js @@ -13,14 +13,19 @@ module.exports = class faceappCommand extends Command { key: 'url', prompt: 'Wich image would you want to process', type: 'string', + }, + { + key: 'type', + prompt: 'How the face should change ?', + type: 'string', } ] }); } - async run(message, { url }) { + async run(message, { url, type }) { let { body } = await superagent.get(url) - let image = await faceapp.process(body, 'hot') + let image = await faceapp.process(body, type) message.channel.sendFile(image) } }; \ No newline at end of file