Cooldown
Runs on: Backend.
Limits how often a path runs. Data goes down Pass if the cooldown has elapsed since the last pass, otherwise down Blocked.
Inputs
| Name | Type | Description |
|---|---|---|
any | any | Any data. Only timing is checked. |
Outputs
| Name | Type | Description |
|---|---|---|
Pass | pass-through | The input, if the cooldown has elapsed. |
Blocked | pass-through | The input, if it hasn't. |
Configuration
- Duration: The cooldown in seconds. After one pass, activations within this window go to Blocked.
Example
After a !joke Chat Command trigger, add a Cooldown of 30 seconds. The first viewer gets a joke and anyone else within 30 seconds is blocked. Connect Blocked to a chat message saying "This command is on cooldown!" if you want a reply.