This project https://github.com/Discord-AntiScam/scam-links provides a list of discord scam URLs. There is over 9000 of them, so manual input to a blacklist does not work. This needs to be automated and the list needs to be updated frequently since there are new domains every day.
- Scan message for links to these URLs
- Delete these messages when they are made
- Kick the user from the discord server
- Update the list of URLs every 30 minutes
- Retroactively keep sliding window of message history of messages with links and re-scan them when the list is updated, then discard.