fixed lower case for type face
This commit is contained in:
parent
b1dc614667
commit
1230b42d7c
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue