Is this possible, if so how?
Hey dyby.
Yes this is possible.
A message that uses the /me function of Twitch looks like:
:jb940!jb940@jb940.tmi.twitch.tv PRIVMSG #CHANNEL :ACTION banana
As seen in the image, there are 2 extra characters there. I do not know what these are, but you could just look for a message starting with ACTION
msg #channel %ACTION You have to put a username after !streamer ya dip % }
The %'s are just placeholders in this, they are actually
ASCII character 1, also known as a “SOH” (start of heading).
I can’t print one here, I tried.
But, yeah! you can block/filter on that character.
:user!user@user.tmi.twitch.tv PRIVMSG #channel :ACTION message
The trailing part is surrounded by characters with byte value 01, as Matt said. It can usually be matched with \x01
or \u0001
in programming languages.
00000000 3a 75 73 65 72 21 75 73 65 72 40 75 73 65 72 2e |:user!user@user.|
00000010 74 6d 69 2e 74 77 69 74 63 68 2e 74 76 20 50 52 |tmi.twitch.tv PR|
00000020 49 56 4d 53 47 20 23 63 68 61 6e 6e 65 6c 20 3a |IVMSG #channel :|
00000030 01 41 43 54 49 4f 4e 20 6d 65 73 73 61 67 65 01 |.ACTION message.|
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.