Games & fun · Step
Matches waiting too long
Matches where nobody has moved for a while, the longest waiting first, ready for a For each to forfeit them. Finished matches older than a day are forgotten here too, so they never pile up.
match.stale
In a flow
“When a button is clicked, matches waiting too long.”
Every 5 minutes → Matches waiting too long 5m → For each → End a match forfeit → Edit message.
What it does
Matches where nobody has moved for a while, the longest waiting first, ready for a For each to forfeit them. Finished matches older than a day are forgotten here too, so they never pile up. It's a step: it runs when the white wire reaches it, then the flow carries on from its Then pin. It gives 3 values later steps can use. Find it under Games & fun in the palette.
When to use it
Use it for games and fun: matches where nobody has moved for a while, the longest waiting first, ready for a For each to forfeit them. Finished matches older than a day are forgotten here too, so they never pile up.
When not to
If nothing should change in Discord, a value node or a check is lighter.
Typical wiring
Sockets: settings you can wire
- Game Text
-
Only matches of this game (empty: every game).
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, the step runs without it.
Connects fromA member's variablesAccept applicationAdd a Notion pageAdd a Trello cardAdd an emojiAdd to number in objectAdd up timesAdd working daysand 844 more
- Waiting for Text
-
Like 5m, 2h or 1d.
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 5m.
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
- Matches List
-
One object each: match, turn (who should have moved), players, game, channel, link. e.g. [{"match": "123", "turn": "456"}]
If it's empty: Empty when the step didn't make one (it stopped early or was skipped); steps reading it get nothing.
Connects toAdd onboarding questionAdd to listAdd up timesAutoMod: add or remove allowed wordsAutoMod: add or remove wordsAutoMod: block wordsBar chartBest by a fieldand 88 more
- How many Number
-
How many are waiting. e.g. 1
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
- Forgotten Number
-
Finished matches cleared. e.g. 3
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