ivandardi / RustbotPython

A Discord bot for the Community Rust Language server, written in Python.
MIT License
16 stars 9 forks source link

Add filter for discord invites. #1

Open emmiegit opened 6 years ago

emmiegit commented 6 years ago

Filter messages posted by non-moderators or whitelisted individuals, by checking for the existence of substrings like discord.gg, discord.me, and discordapp.com/invite.

An example regex that could suffice for this:

(https?:\/\/)*discord(app)?\.(gg|me|com)\/\w+
kangalio commented 3 years ago

I don't think this is a good idea, to be honest. There are many discord servers relevant to Rust that are brought up sometimes, for example The Coding Den or the Serenity Discord.