GospelBG / ChatPointsTTV

Integrate your world with your Twitch stream. Minecraft in-game interactions through Twitch Channel Points, Bits, Subs and more!
https://modrinth.com/plugin/chatpointsttv
GNU General Public License v3.0
9 stars 1 forks source link

[REQUEST] Disable events from offline streamers #16

Open CitizenPrayer opened 1 month ago

CitizenPrayer commented 1 month ago

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.

GospelBG commented 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.

Verdux commented 1 month ago

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.

GospelBG commented 1 month ago

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.

Verdux commented 1 month ago

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.

GospelBG commented 4 weeks ago

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!