1
0
Fork 0

cant recognize the face

Commando
loicbersier 6 years ago
parent 9c6504d9d7
commit 7a07944f04

@ -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")

Loading…
Cancel
Save