Logic · Step
Cooldown with reply
Carry on when a cooldown is over (and start it again); otherwise tell them how long is left and stop.
logic.cooldown_reply
In a flow
“When a button is clicked, cooldown with reply.”
/daily: 'You can do that again in 3 hours.'
What it does
Carry on when a cooldown is over (and start it again); otherwise tell them how long is left and stop. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 1 value later steps can use. Find it under Logic in the palette.
When to use it
Use it to decide what happens next: carry on when a cooldown is over (and start it again); otherwise tell them how long is left and stop.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Seconds Number
-
How long between uses, like 86400 for a day. At most 30 days.
What goes there: Type it in the side panel, or wire in a number. e.g. 42
If it's empty: Optional. Left empty and unwired, it uses 60.
Connects fromA member's variablesAccept applicationActive membersAddAdd a forum tagAdd a labelAdd a row to a Google SheetAdd a staff noteand 500 more
- Reply Text
-
What they're told when the check stops them. Leave empty to stop without a word. Variables allowed.
What goes there: Type it in the side panel, or wire in text. e.g. Hello there
If it's empty: Optional. Left empty and unwired, it uses You can do that again in {left}..
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
Values it gives
- Seconds left Number
-
0 when it carried on. e.g. 42
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAccount ageActive membersAddAdd answer to formAdd soundboard soundAdd timeAdd to a counterAdd to a leaderboardand 718 more
Shortcuts
- Cooldown check → If / elseIt does what Cooldown check → If / else do together, in one element.