I am a moderator in one of the youtube streams and wanted to introduce a troll mode where only emotes are allowed. To prevent meta etc. So basically the idea is during this time, timeout all messages except the ones which only contains emojis list.
But it doesn't work. I read it on one of the older posts here that this type of regex is a negative lookahead regex which is not supported in nightbot. So is there any way. To say do
Bold Horse said: I read it on one of the older posts here that this type of regex is a negative lookahead regex which is not supported in Nightbot.
It's true that we've had some issues with matching emotes, but from our tests we didn't try using curly brackets {}, so maybe that's the solution, I'd say give it a try and see.
But in nightbot doesn't end up banning any word :(
I would really appreciate if you have any idea/direction on this.
Thanks!
Polar Cat
Don't worry, you're not a bother, I expected this topic to be difficult to solve.
I now remember we had a similar issue recently, this might be the same thing, but first, do you put your RegExp between slashes? /RegExp/, so with the bit of code you put above: /[^((?!emote1|emote2).)*$]/ If it still doesn't work, try with a tilde (~) before it: ~/RegExp/, ~/[^((?!emote1|emote2).)*$]/
Also, I didn't specify it because I felt it was obvious, but just in case, to test if the RegExp is efficient, you need to test it with an account that's not the streamer or a moderator.
Didn't find your answer? The community is on Discord.