Closed enteryournamehere closed 3 years ago
I don't know if you have a problem with this, but one problem we have at CodeDay is people joining and immediately posting their Discord join link. In our case we have just outright blocked all Discord join links from anyone without a more trusted role.
Another good anti-spam we have used is blocking newly joined users from posting a link within the first 2 messages they send.
It's good you mention that. But for posting links just after joining, Wilson already accounts; links posted by members who joined less than 10 minutes ago are deleted automatically. The accounts sending the spam this PR is about seem to be mostly legitimate users who have gotten their accounts hijacked, they've usually been in the server for a long time already.
Regularly an account will come in and start spamming a link by posting it in every channel (often advertising free Nitro or something similar, intended to get people's money or their Discord credentials). This PR adds functionality to detect this & stop it before the entire server is spammed: if a user sends the same message 3 times in a row, and the message contains a
.
(indicating it might contain a link), the user is muted and reported to #staff-botspam, like in #26. Wilson will also DM the user that they've been muted and can contact a moderator to be unmuted (falling back to a channel message in case they have their DMs closed).