Zum Inhalt springen
  • Dunkel
  • Hell
  • System

!ad

Set Argument: Duration

Core Arguments Set Argument
Variable Name adDuration
Value %input0%

If/Else: Empty Duration

Core Logic If/Else
Input %adDuration%
Operation Is Null or Empty
Then

Set Argument: Default 30s

Core Arguments Set Argument
Variable Name adDuration
Value 30

Start Commercial

Twitch Ads Start Commercial

Setzt %startCommercialResult% und %startCommercialLength%.

Length (seconds) %adDuration%

If/Else: Fehler

Core Logic If/Else
Input %startCommercialResult%
Operation Equals
Value false
Then

Send Message to Channel

Twitch Chat Send Message to Channel
Message @%user% Ad-Start fehlgeschlagen. Cooldown noch aktiv?
Then

Break

Core Logic Break

Stoppt die laufende Action. Alle folgenden Sub-Actions in derselben Action werden übersprungen.

Send Message: Erfolg

Twitch Chat Send Message to Channel
Message 📺 Werbung läuft (%adDuration%s). Subs sind ad-free. 💖
AzaBot: 📺 Werbung läuft (60s). Subs sind ad-free. 💖
So sieht's im Chat aus
  1. 1 Set Argument: adDuration = %input0%
  2. 2 If/Else: %adDuration% Is Null or Empty
    1. Then 2a Set Argument: adDuration = 30
  3. 3 Start Commercial (Length %adDuration%)
  4. 4 If/Else: %startCommercialResult% Equals false
    1. Then 4a Send Message: Fehler
    2. Then 4b Break
  5. 5 Send Message: 📺 Werbung läuft
FeldWert
Name!ad
Commands!ad
!commercial
!werbung
Grant TypeAllow
GroupsBroadcaster
ChatResultat
!ad30s Ad
!ad 6060s Ad
!ad 180180s Ad (3 Min)
  • Twitch Ad-Cooldown: Nach Ad-Start ist mindestens 5 Minuten Cooldown. Während der Wartezeit liefert Start Commercial false.
  • Erlaubte Längen: Twitch akzeptiert 30, 60, 90, 120, 150, 180. Andere Werte werden auf nächstkleinere gerounded oder liefern Fehler.
  • Picture-in-Picture-Ads: Twitch nutzt seit 2024 auch PiP-Ads: Start Commercial löst Standard-Ad-Break aus.
  • Vorwarnung: Vor Start eine Message „Ad-Break in 10 Sekunden: geht Pinkeln“ + Delay.
  • OBS-Pause: Bei Ad-Start automatisch Scene-Switch zu „Be Right Back“ und nach 60s zurück.
  • Mid-Roll-Schedule: Cron-Trigger alle 20 Min im Stream → !ad 30 automatisch.