Automoderation (REGEX)

(#976) Feature Shipped moderation

Thread

Comment by @TheNamlessGuy
RexSystem 1 vote originally by @TheNamlessGuy on GitHub 1 reply
To me, this definitely feels like something that should be handled on a bot level.
Comment by @AmilieDev
RexSystem 1 vote originally by @AmilieDev on GitHub OP
> I don't think Discord allows lookaheads I'm not a regex expert but this explains things well: discord/discord-api-docs#6860 Honestly, I thought discord rolled their own regex parser for that bit, which I was going to say seemed like a weird thing to spend time on for a project with a smaller userbase like this. But if it's a readily available and battle-tested rust crate, then sure. AFAIK there's no rust in the fluxer backend currently, so that might be a concern to look into as well (in terms of platform support, etc). There probably are packages for other languages, but they might not be as performant/battle tested. > A regex is server side. It's per server. Templates would be made by Fluxer themself. All communities on the same server sharing the regex list seems like it would be a lot of headache for the main server in regards to slurs in other languages. Speaking of, do regexes work well for pictographic languages? Or can you go around saying the n-word in chinese without (immediate) repercussions?
Server as in individual communities, look in Community settings on Discord > Safety > Regex. Take a look at that, that's how it works. I don't think you understand Automod.