English Only Chat

Asked Aug 13, 2021·3 replies·Last activity 5 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 everyone, I'm trying to set the regular expression on Nightbot spam filters to prevent any letters from the alphabet other than English from being passed into chat. I'm doing this to prevent hateful messages or spam being thrown around the chat.

So far I have discovered this...
~/([^A-Za-z0-9$@$!;()[]%'*?&#^-_. +])/

But I don't know much about Regular Expressions.

Thank you.

3 replies

Hey, Emily! Thank you for the response. I appreciate it! I'm currently having an issue where, despite the code working, I noticed that it doesn't allow for emojis (Examples Emojipedia) to be posted. It's the only thing I need to get Nightbot working correctly. What is the code for that?