Send the message that ask for template link when nothing is sent
This commit is contained in:
parent
64d56ddba7
commit
90227bb824
1 changed files with 1 additions and 1 deletions
|
@ -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!');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue