Open CitizenPrayer opened 1 month ago
That is the intended behaviour. When a streamer is offline viewers can still chat and donate, although this is uncommon. I don't think it should stop working when a streamer is offline as this also allows streamers to set up and test the plugin without having to stream.
I'd like to revisit this with another context, what if the streamer is streaming something else entirely? The events would still go through on the server but they could be playing something else entirely. I understand this can be considered situational but would love a setting or permission we can use to not trigger events when the streamer isn't on.
If nobody else is going to use the plugin (if yours is the only channel that will be listened) you can run /twitch unlink
to disable the plugin while you won't be playing on the server. When you are going to stream again run /twitch link
and authenticate with your preferred method.
If this method does not work for your scenario please let me know and I'll try to implement it in the next update.
This wouldn't work as there will be multiple different streamers, they just stream my server as part of their streaming schedule but they do stream other games throughout the week and not often as the same time.
In this case, I could add a config value to toggle this check for all events. I'll try it out and if everything is ok (I'm not sure if the api library I'm using can fetch that) it will be pushed in the next update. Thanks for your feedback!
I'm testing and when a streamer is offline all of the chats, bits, cheers, follows, rewards, everything still goes through. So if say, streamer is offline, and someone is on playing by themselves who happens to be in the target group, then they'll be hit with everything even when the streamer isn't streaming.