Fix Regex

This commit is contained in:
Daniel Odendahl Jr
2017-05-20 23:02:06 +00:00
parent 427655ea22
commit 267614dbff
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ client.on('commandError', (command, err) => {
});
client.on('message', async (msg) => {
if (msg.guild && msg.guild.settings.get('inviteGuard') && /(discord(.gg\/|app.com\/invite\/))/gi.test(msg.content)) {
if (msg.guild && msg.guild.settings.get('inviteGuard') && /(discord(\.gg\/|app\.com\/invite\/))/gi.test(msg.content)) {
if (msg.author.bot
|| msg.member.hasPermission('ADMINISTRATOR')
|| msg.author.id === msg.guild.ownerID
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiaobot",
"version": "19.10.1",
"version": "19.10.2",
"description": "A Discord Bot",
"main": "shardingmanager.js",
"scripts": {