forked from Supositware/Haha-Yes
cant recognize the face
This commit is contained in:
parent
9c6504d9d7
commit
7a07944f04
1 changed files with 4 additions and 0 deletions
|
@ -30,6 +30,10 @@ module.exports = class faceappCommand extends Command {
|
||||||
let face = type.toLowerCase();
|
let face = type.toLowerCase();
|
||||||
let { body } = await superagent.get(url)
|
let { body } = await superagent.get(url)
|
||||||
let image = await faceapp.process(body, face)
|
let image = await faceapp.process(body, face)
|
||||||
|
.catch(error => {
|
||||||
|
message.say('Cant recognize the face')
|
||||||
|
console.error(error)
|
||||||
|
})
|
||||||
message.channel.sendFile(image)
|
message.channel.sendFile(image)
|
||||||
} else
|
} else
|
||||||
message.say("You need to input a link")
|
message.say("You need to input a link")
|
||||||
|
|
Loading…
Reference in a new issue