Send the message that ask for template link when nothing is sent

This commit is contained in:
Supositware 2019-03-24 17:30:45 +01:00
parent 64d56ddba7
commit 90227bb824

View file

@ -22,7 +22,7 @@ class spbCommand extends Command {
} }
async exec(message, args) { 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!'); return message.channel.send('Need a template Shitpostbot 5000 link!');
} }