I’ve been getting some erratic behavior lately regarding cheers. I’ve been just reading chat for the amount of bits. Sometimes it triggers TWICE, which is odd.
The other idea is I think TwitchLib may now be outdated, so it isn’t doing this correctly. It seems I need to roll my own?
Also, can’t use EventSub for webhooks. This is an installed app running on the user’s PC. There is no HTTPS endpoint that could be passed to Twitch for the subscription callback.
Each event should have a unique ID. You may have to cache IDs to avoid duplication.
I don’t think that’s the case with chat, which is how I’m detecting and handling them now.
All chat messages have a unique ID
And since cheers broadcast as a chat message you can pull that ID from the tags and dedupe if needed
I’ve not seen duplicates for a while, so check you don’t have two connections spun up
Oh interesting! I had no idea. I assume it’s “tmi-sent-ts” ?
tmi-sent-ts is the server timestamp for the message
you want the
As per this JSON-ified example
"body":"A test messge",
If you look in the tags you will see an
Oh JEEZ, never even saw that in there. Been writing bots for Twitch for ~5 years now. Thanks for the help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.