Skip to main content

Ad Stopped

  • Alert key: twitch-adStopped
  • Source: Twitch
  • Event list label: Ad Stopped

Default message template

ad stopped

Template variables

Use any of these in alert text, TTS, or chat templates. The same names appear under data.extraSettings.* when you subscribe via Overlay.on('alert').

Template variableOverlay payload fieldDescription
{{length}}data.extraSettings.lengthLength of time in seconds
{{is_automatic}}data.extraSettings.is_automaticWhether the ad is playing automatically or not
{{started_at}}data.extraSettings.started_atISO String of the time this alert was triggered
{{twitch_next_ad}}data.extraSettings.twitch_next_ad(Twitch) Gets the remaining time for how long until the next ad
{{amount}}data.extraSettings.amountThe amount sent

Example payloads

Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).

Ad Stopped

{
"alert": "twitch-adStopped",
"dynamic": {
"value": "60",
"amount": 60
},
"extraSettings": {
"length": "60",
"amount": 60,
"is_automatic": false,
"started_at": "2022-07-26T17:00:03.17106713Z",
"next_ad_starts": "1 hour, 5 minutes, 20 seconds",
"next_ad_starts_date": "2022-07-26T17:00:05.17106713Z",
"twitch_next_ad": ""
}
}

Variation conditions

Dimensions you can branch on when configuring alert variations:

  • RANDOM
  • EQUAL_VARIABLE