don't allow discord.com/invite

This commit is contained in:
Loïc Bersier 2020-07-03 16:19:32 +00:00
parent bdf2b09f05
commit 8bc393937a

View file

@ -53,7 +53,7 @@ class tweetCommand extends Command {
if (args.text)
if (args.text.includes('discord.gg')) return message.channel.send('No discord invite allowed.');
if (args.text.includes('discord.gg') || args.text.includes('discord.com/invite/')) return message.channel.send('No discord invite allowed.');
const client = this.client;