Thank you for your quic response, Barry! I really appreciate it.
Right now I am trying the privmsg way, because its the easiest way and corresponds with the code I already have. It looks roughly like this and lets me track all the messages from chat:
twitchClient = new TcpClient(“irc.chat.twitch.tv”, 6667);
reader = new StreamReader(twitchClient.GetStream());
writer = new StreamWriter(twitchClient.GetStream());
if(twitchClient.Available > 0) string message = reader.ReadLine();
In this state, message give me text like this: ":thepersonwhocheered!thepersonwhocheered@thepersonwhocheered.tmi.twitch.tv PRIVMSG #thechannelicheeredon :Cheer1 Testest
For clarification, “thepersonwhocheered” is my ‘censored’ username that gives the bit, while “thechannelicheeredon” is the ‘censored’ channel that received the bit. Bascially, I can work with that, but I have two doubts:
First doubt:
In the first link you send ( https://dev.twitch.tv/docs/irc/tags#privmsg-twitch-tags) there is the bits tag mentioned related to privmsg. But I did not see that tag when I tested with real bit cheers. Do I have to “look for” bits events specifically by changing this line here? ->
twitchClient = new TcpClient(“irc.chat.twitch.tv”, 6667);
Second doubt:
That leads me to my second doubt. With that setup, I basically only see the same thing as if I would track the chat contents. The problem with that is that cheers can have a different format than e.g. “cheer100”. It could also be PogChamp100 or Kappa100. It would not be efficient and reliable to filter all of these possibilities out.
So basiacally as summary, can I extract a similar message to my example above that ONLY reacts to bits and always gives me the bits amount and who gave the bits, even when CheerMotes are being used? If yes, what would I have to change?