Replies: 1 comment
-
|
Not sure if something like that work with chatterino, targets control and combining marks maybe trying something with flags.similar I would love some filter/flag which can detect emotes more natively tho, so i can filter all messages which are just emote only ones or don't have much text to them |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys, over the last couple of months, I've made a filter for messages that only consists of Emotes. It's working just fine so far, except for one issue: Non-printing characters. Some chat tools (or maybe even Twitch itself) insert those characters at the end of messages to circumvent the duplicate message block. I managed to include one of them into my filter, namely U+E0000, but there is another one that seems to be more complicated: U+034F.
This is a character that solely exists to combine the characters that come before it and after it, and it's usually ignored by applications. But not by Chatterino, so if someone uses a chat tool with that circumvention, I can see every second message they write. For example
"noted " is filtered
"noted [U+034F] " is not filtered, because it combines the two spaces into one, which isn't caught by my filter
"noted " is filtered again
Does anyone know if there's a way to catch this character? I've already tried stuff like \W. but it doesn't seem to work at all. Currently, my filter looks like this (I just add each emote if it's spammed in chat too often):
!(message.content match r"^((noted|etc)(|◌͏|\s| ͏ |))*$")
The (|◌͏|\s| ͏ |) part is the important one, it's: (No space | ◌͏ (which is supposed to be U+034F, apparently) | \s | two spaces with U+034F between them | U+034F)
But neither "◌͏" nor " ͏ " seem to work.
Kind regards
Beta Was this translation helpful? Give feedback.
All reactions