There is a situation in the twitch chat that I'm modding for where we have the term "sex" (without the quotes and with asterisks on both sides) blocked through twitch for obvious reasons, but the problem is emotes such as BisexualPride, PansexualPride, Intersexpride, ect. are blocked as a result, adding them as permitted terms does not work, so I was hoping that there would be a way with Nightbot blacklist filters to block "sex" but not the emotes.
Blacklist terms conflict
10 replies
Or simpler: /\bsex\b/i
Here's a good RegExp reference if you need an explanation.
there are 4 pride emotes that have "sex" in them: AsexualPride IntersexPride PansexualPride BisexualPride, is there a way to only allow "sex" to be used in these emotes and no other context? Because right now, people can just type "sex" and put a random letter behind or in front to bypass the filter. ty
There is no whitelist, so no, either you only block "sex" as a word itself, or you block any word containing the subword "sex" in it, there's no way to detect if it's part of an allowed word or if characters are just added to bypass the blacklist, that would be possible if their was a whitelist along the blacklist.
That's weird because I did test it with a sentence containing all the emotes you're trying to allow and "sex" and variations of it such as "sexy" or like "aaasexbbb" and it did detect all the words containing "sex" in it, but not the emotes... 🤔
You can see it working here, I made a small example.
Didn't find your answer? The community is on Discord.
Ask on Discord