Closed SirRandoo closed 3 years ago
I don’t need the viewers list. I call this method only because not calling it will cause an error when a newly joined twitch viewer interacts with chat commands via the puppeteer website instead of using twitch chat. The purpose of calling the method is purely to make Toolkit load and store the viewer so when I fake send the chat to toolkit it has seen the sender.
I should instead use this method instead.
Currently Puppeteer's Twitch Toolkit integration calls
Viewers.AwardViewersCoins
as a means of refreshing Toolkit's viewer list, but Toolkit defaults to awarding coins when the value isn't above 0. As it stands currently, that method is called every time a viewer joins Puppeteer, so every join would give every viewer currently in Toolkit's viewer list extra coins.If you'd want to manually obtain the viewer list while the game isn't running, you'd have to get the current list of viewers from the chatters api, then stores it inside the
jsonallviewers
static field in theViewers
class.