A duel between two chatters — one wins action
Automation · 3 min read ·
Runs the duel starter command behavior. Learn its setup, options and use in Roadie Automation.
A duel between two chatters — one wins is the builtin.duel Automation action. Runs the duel starter command behavior.
Availability: Choose this action in a flow when its feature and required connections are available to your channel. Before you start: Create or open an Automation flow with a trigger.
Options and starting values
The values below are what the editor starts with for a channel with no matching resources selected. They are starting values, not a guarantee that the step can run as shown. Required resource choices and trigger fields may change the starting values.
response— text; maximum 1000 characters; required; editor starts with ``; accepts fill-ins.options— the Duel step’s own settings, all on the!duelcommand’s Duel step:- Wager (
wagerCurrency) — a currency, or empty for a duel for glory (no points), as before. - Smallest wager (
wagerMin, 10) and Largest wager (0 for no limit) (wagerMax, 0). - Seconds to answer (
answerSeconds, 60; 10 to 600). - With no one named, duel the streamer (
duelStreamer, off). The channel pays the streamer’s side. - Word to accept (
acceptWord), Word to turn it down (denyWord) and Word to call it off (cancelWord). - Ten chat lines: The challenge, Someone wins the wager, Turned down, Called off, No answer in time, Under the smallest wager, Over the largest wager, Not enough to duel, The one called out has too little and A duel is already waiting. They take fill-ins like
{duel.winner},{duel.loser},{duel.amount}and{duel.unit}.
- Wager (
In a flow
Add A duel between two chatters — one wins after the event, command or timer that should cause it. Runs the duel starter command behavior.
For orientation, the editor starts with {"response":"","options":{}} in a blank channel. Complete any placeholder destination, resource or text before enabling the flow; passing the field schema alone does not prove this will run.
In tests default: New A duel between two chatters — one wins steps start at Apply. The trigger editor’s Run test currently applies every action regardless of this per-step default. Use a harmless flow when learning the Test panel; a test can make real changes.
How a wagered duel works
!duel @name 100 bets 100 of the wager currency; with no amount, the smallest wager. The one called out answers !duel accept or !duel deny, and the starter can !duel cancel. No answer in time calls it off. Nothing is taken until the accept: both balances are checked then, and the loser’s stake moves to the winner. A turn-down, a cancel or a timeout moves nothing. The Duel result event carries the amount and the currency. See the !duel command.
Values for later steps
This action does not declare a named output for later steps.
If the step fails
The run log records the failed step and its reason. The step’s Stop the run if it fails setting decides whether later steps run. Missing connections, permissions, or required choices can prevent this step from completing.