Is Hype Train Active
Runs on: Frontend (Chatbox). Chatbox Flow Editor only.
Passes while a Hype Train is running on your channel and fails otherwise. It checks your channel, not the message, so it works after any trigger. The event is forwarded unchanged.
The variant is picked when the message arrives and stays after the train ends. To restyle every message on screen while a train runs, use the chatbox's custom CSS instead: while a train is running the chatbox gets data-hype-train-active="true" and a --hype-train-level variable.
Inputs
| Name | Type | Description |
|---|---|---|
event | any | The message or event to route. |
Outputs
| Name | Type | Description |
|---|---|---|
pass | same as input | The event, forwarded while a Hype Train is running. |
fail | same as input | The event, forwarded when no Hype Train is running. |
Example
Route messages sent during a Hype Train to a "hype" variant with a glowing border and a train emoji.