fixed lower case for type face

This commit is contained in:
loicbersier 2018-10-10 16:00:17 +02:00
parent b1dc614667
commit 1230b42d7c

View file

@ -24,8 +24,9 @@ module.exports = class faceappCommand extends Command {
} }
async run(message, { url, type }) { async run(message, { url, type }) {
let face = type.toLowerCase();
let { body } = await superagent.get(url) let { body } = await superagent.get(url)
let image = await faceapp.process(body, type) let image = await faceapp.process(body, face)
message.channel.sendFile(image) message.channel.sendFile(image)
} }
}; };