Zum Inhalt

Set Action State — Actions dynamisch ein-/ausschalten

Actions per Sub-Action enable/disable. Damit kannst du Stream-Modi umschalten ohne im UI klicken zu müssen.

Sub-Actions: - Core → Actions → Set Action State - Core → Actions → Set Action Group State - Core → Actions → Set Sub-Action State

Set Action State

Eine spezifische Action aktivieren/deaktivieren.

Feld Wert
Action (welche Action)
State Enabled / Disabled / Toggle

Use-Case A: Stream-Modi-Switcher

!gamingmode aktiviert Gaming-Actions, deaktiviert Just-Chatting-Actions.

Action: [Cmd] !gamingmode

1. Set Action State: [Cmd] !iq = Enabled
2. Set Action State: [Cmd] !rose = Enabled
3. Set Action State: [Event] HR Pulse = Enabled
4. Set Action State: [Cmd] !theme = Disabled       (Just-Chatting-Only)
5. Set Action State: [Cmd] !ask = Disabled
6. Send Message: "🎮 Gaming-Modus aktiv"

Action: [Cmd] !chillmode

Umgekehrte Logik. Plus die !theme Command nur in Just-Chatting verfügbar machen.

Set Action Group State

Ganze Gruppen auf einmal.

Feld Wert
Group (welche Group, z.B. "Gaming Commands")
State Enabled / Disabled / Toggle
[Cmd] !gamingmode
├── Set Action Group State: Gaming Commands = Enabled
├── Set Action Group State: Just-Chatting Commands = Disabled
└── Send Message: "🎮 Gaming-Modus aktiv"

Viel sauberer als jede Action einzeln.

Use-Case B: Stream-Pause

Bei Stream-Pause alle Effekt-Actions deaktivieren damit OBS nicht unerwartet wechselt.

[Cmd] !pause
├── Set Action Group State: Alerts = Disabled
├── Set Action Group State: OBS Effects = Disabled
├── OBS Set Active Scene: BRB
└── Send Message: "⏸️ Pause-Modus"

[Cmd] !resume
├── Set Action Group State: Alerts = Enabled
├── Set Action Group State: OBS Effects = Enabled
├── OBS Set Active Scene: Main
└── Send Message: "▶️ Stream-Modus"

Use-Case C: Auto-Enable beim Stream-Start

[Sys] Stream Online aktiviert alle Stream-Actions automatisch:

[Sys] Stream Online Setup
Trigger: Twitch → Channel → Stream Online
├── 1. Set Action Group State: Stream Commands = Enabled
├── 2. Set Action Group State: Twitch Events = Enabled
├── 3. Set Action Group State: HR Tracking = Enabled
└── 4. Send Message: "🟢 Setup complete"

Bei Stream-Offline das Gegenteil.

Set Sub-Action State

Einzelne Sub-Actions innerhalb einer Action aktivieren/deaktivieren.

Feld Wert
Action Parent-Action
Sub-Action Welche Sub-Action
State Enabled / Disabled / Toggle

Use-Case: Discord-Notification temporär aus.

[Cmd] !disable-discord
└── Set Sub-Action State:
     Action: [Cmd] !clip
     Sub-Action: Discord Basic Webhook
     State: Disabled

So bleibt !clip-Action aktiv, aber das Discord-Posting ist aus bis du es manuell wieder aktivierst.

Get Action State

Pfad: Core → Actions → Get Action State

Liefert den aktuellen State ohne ihn zu ändern. Use-Case: Conditional Logic.

[Cmd] !mode-check
├── 1. Get Action State: [Cmd] !iq → currentState
├── 2. If/Else: %currentState% Equals true
│   └── Send Message: "Gaming-Modus an"
└── 3. Send Message: "Chill-Modus"

Variante: Mod-Command für Bot-Toggle

[Cmd] !bot-off  (Mod-Only)
├── 1. Set Action Group State: Default = Disabled
└── 2. Send Message: "🤖 Bot pausiert. !bot-on zum reaktivieren."

Bei Stream-Stress kann Mod das ganze Bot-System per Command pausieren.

Häufige Fallen

  • Disabled Action wird nicht getriggert — auch nicht durch Run Action oder Custom Event. Wenn du Disabled-Actions trotzdem aufrufen willst → enable kurz davor
  • State-Persistenz — Action-State wird in SB-DB gespeichert und überlebt Restart. Bedeutet: wenn du eine Action im UI disabled hast, bleibt sie das bis du sie wieder enablest (manuell oder via Sub-Action)
  • Group-State überschreibt Action-State — wenn Group disabled, alle Actions drin auch disabled, auch wenn einzeln enabled. Hierarchie respektieren
  • Mod-Befehle disablen versehentlich!bot-off deaktiviert auch sich selbst → kein !bot-on mehr möglich. Lösung: !bot-on Action in eigene "Always-On" Group die nie disabled wird

Quellen