From 0cf246d5a2e018c857c5968f200a4cb8d1aa1f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Bersier?= Date: Sat, 8 Aug 2020 21:17:37 +0000 Subject: [PATCH] Check for link --- commands/fun/curses.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/commands/fun/curses.js b/commands/fun/curses.js index 09f9587..ac9c8dd 100644 --- a/commands/fun/curses.js +++ b/commands/fun/curses.js @@ -42,6 +42,8 @@ class cursesCommand extends Command { else link = await attachment(message); + if (!link) return message.channel.send('Please specify the URL of the video you want to curse.'); + let ext = path.extname(link.toLowerCase()); console.log(ext); if (ext !== '.webm' && ext !== '.mp4')