From 7a07944f04dd12a424176d542677a18d8f2e3d2f Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 11 Oct 2018 15:43:43 +0200 Subject: [PATCH] cant recognize the face --- commands/fun/face.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/fun/face.js b/commands/fun/face.js index 1c0b3aeb..e043e3a8 100644 --- a/commands/fun/face.js +++ b/commands/fun/face.js @@ -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")