Coming soon - Get a detailed view of why an account is flagged as spam!
view details
4
Threw together a quick regex string to block any invite-link spam. Figured I'd share for anyone who deals with spam or can't run their own bot.
Post Body

I wanted to pull my bot from one of my old servers but still keep it protected from invite link spam, so I pulled the Regex I used in my bot, split it to two lines, and formatted (and simplified) it for Discord.

(discord\s?\.\s?gg\s?\W)
((discordapp|discord)\s?\.\s?co(m)?\s?\W\s?(invite|servers)\s?\W)

These two lines should block just about any typical invite-link spam attack, from any of the known invite links, as well as spaces between periods which I've seen before, and you could technically change each \s? with . and filter for any character separating each period.

To use them, simply go to Server Settings > AutoMod > ⊕ Create Custom Keyword Rule, click Use regex patterns for advanced matching (optional), and apply both to the box. You can then choose to block message, send an alert to a channel, or timeout a user as per the capabilities of AutoMod.

If anyone can improve upon it, please do, and please share!

That should block any of the following:

https://preview.redd.it/kdguyoptvaea1.png?width=266&format=png&auto=webp&s=bc56f3aa310eca828b47ae0582e4309c9be2a811

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
5,812
Link Karma
3,110
Comment Karma
1,524
Profile updated: 5 days ago
Posts updated: 10 months ago
:ActiveDev:

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
2 years ago