My goal is to make a feature where an user can “steal” a VIP from the least Active VIP on channel, which is the one that haven’t watched the stream for the longest time.
For that I was trying to make a chatbot that will know when a VIP join the chat and save in a local Database the current time. So I ended up with two solutions:
- Get when an User joins chat and, if it’s a VIP, save on DB (Will have problems on 1k Viewers+ Streams).
- Get the vips online, from time to time, with the http://tmi.twitch.tv/group/user/[CHANNEL_NAME]/chatters and save on DB (heard that is not really reliable)
Questions:
For 1. I don’t know how to use this “onJoin” event and if it really worth it due to it’s limitations
For 2. I want to know what is the frequency that this information is updated
Are those good solutions? Any other way you may suggest? Will I have privacy issues by handling this data?