Exact Phrase Blacklist

Asked Feb 21, 2023·1 reply·Last activity 3 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

Hey there.

So on the blacklist, is it possible to do an exact match and not wildcard?

I would like to blacklist !play but not any other message if it just contains !play. Reason being marbles on stream we have alot of !play spam but sometimes people put messages alongside their !play message and I miss it by just putting !play in the blacklist right now.

Thank you in advance.

1 reply

Hey @Fluffy Whale!

This can be fixed by using a regular expression in the blacklist, replace !play from your list with:
~/^!play(?!.)/

It should only match messages that strictly only contain !play, as highlighted below:

diff
+ User: !play
- User: hello world !play
- User: hello !play world
- User: !play hello world