From 90227bb8243b00c0c16680f2a5c0e5012d81610a Mon Sep 17 00:00:00 2001 From: Supositware Date: Sun, 24 Mar 2019 17:30:45 +0100 Subject: [PATCH] Send the message that ask for template link when nothing is sent --- commands/general/spb.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/general/spb.js b/commands/general/spb.js index bb4ad56..b39badd 100644 --- a/commands/general/spb.js +++ b/commands/general/spb.js @@ -22,7 +22,7 @@ class spbCommand extends Command { } async exec(message, args) { - if (!args.link.includes('shitpostbot.com/template/')) { + if (!args.link || !args.link.includes('shitpostbot.com/template/')) { return message.channel.send('Need a template Shitpostbot 5000 link!'); }