cant recognize the face

This commit is contained in:
loicbersier 2018-10-11 15:43:43 +02:00
parent 9c6504d9d7
commit 7a07944f04

View file

@ -30,6 +30,10 @@ module.exports = class faceappCommand extends Command {
let face = type.toLowerCase();
let { body } = await superagent.get(url)
let image = await faceapp.process(body, face)
.catch(error => {
message.say('Cant recognize the face')
console.error(error)
})
message.channel.sendFile(image)
} else
message.say("You need to input a link")