From b4fc4e63579789f47f311641fcdf1af0873114ff Mon Sep 17 00:00:00 2001 From: loicbersier Date: Thu, 11 Oct 2018 12:56:20 +0200 Subject: [PATCH] if its not a link send message --- commands/fun/face.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commands/fun/face.js b/commands/fun/face.js index 11e311ab..0c75bd8c 100644 --- a/commands/fun/face.js +++ b/commands/fun/face.js @@ -24,9 +24,12 @@ module.exports = class faceappCommand extends Command { } async run(message, { url, type }) { + if(url.includes("http") || url.includes("www")) { let face = type.toLowerCase(); let { body } = await superagent.get(url) let image = await faceapp.process(body, face) message.channel.sendFile(image) + } else + message.say("You need to input a link") } }; \ No newline at end of file