Kruiser8 / Kruiz-Control

Kruiz Control enables a pseudo code approach to manage and automatically handle Twitch Channel Points, Twitch Chat, OBS or SLOBS, and StreamElements or Streamlabs alerts.
Other
227 stars 32 forks source link

Suggestion: Ad Break Trigger #76

Open TheTaraStark opened 4 months ago

TheTaraStark commented 4 months ago

New trigger for when midroll ads begin. Twitch added it to their API in October and it's out of beta. Documentation here

OnTWAdBreak Could be used to trigger chat messages (prompts to subscribe, get prime, thank viewers for supporting with ads, etc), make countdown timers visible on stream to show how far stream is into ad break, etc

<duration> would probably be the most useful parameter here (change chat messages or trigger different timers), though <is_automatic> could also be neat for conditional "Streamer is taking a break now so you don't miss the action!" or "Streamer had no control, ads have to run sometime" messages, etc

TheTaraStark commented 3 months ago

Just discovered "Get Ad Schedule" was added to Twitch's API at some point. https://dev.twitch.tv/docs/api/reference/#get-ad-schedule

These could be strung together to trigger actions before ads run. I'm envisioning situations where a warning allows viewers to beg for a snooze, where viewers choose to sub before ads hit, etc.