From 1230b42d7c91451fa9cf00a53dbba08c0f4a4ca6 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Wed, 10 Oct 2018 16:00:17 +0200 Subject: [PATCH] fixed lower case for type face --- commands/fun/face.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/fun/face.js b/commands/fun/face.js index 8646c6dd..11e311ab 100644 --- a/commands/fun/face.js +++ b/commands/fun/face.js @@ -24,8 +24,9 @@ module.exports = class faceappCommand extends Command { } async run(message, { url, type }) { + let face = type.toLowerCase(); let { body } = await superagent.get(url) - let image = await faceapp.process(body, type) + let image = await faceapp.process(body, face) message.channel.sendFile(image) } }; \ No newline at end of file