I am currently on developing a little twitch.tv chatbot. I know, there are like a thousand of them but I would like to create my own, just to have a project - so this is not the point.
I was wondering, how the watchtime of a user could be calculated. Just as streamelements.com does it with their
!watchtime chat command. I did not find any API endpoint to get the users, which are currently viewing the stream. The only thing found is the current viewcount in https://dev.twitch.tv/docs/api/reference#get-streams but there is no way to link to a specific user.
I’ve found a few postings, saying it is not possible but streamelements and other bots are proving this wrong, so I wanted to give it a new try.
Anyone has any idea?