Duel result event
Automation · 4 min read ·
A !duel ended: one of the two won. Fires for every command that runs the Duel step, after its line.
Duel result (commands.duel_result) — A !duel ended: one of the two won. Fires for every command that runs the Duel step, after its line.
Source: roadie. Selection: Events picker. Before it can fire: Bot Commands switched on.
Start a flow
Select this event in Automation where its selection flow is available, then add any conditions and actions. A real occurrence matching the event starts the flow. The Test panel can supply representative sample fields, but Run test applies every action for real. Use only harmless actions while learning the trigger, and inspect its recent run before enabling effectful steps.
Trigger fields
These are the typed fields declared for this event. An optional value may be absent in a particular run; confirm a real event before relying on it.
{user}— Username; person; required; Who started the duel; sample: NachoAverage (@nachoaverage).{duel.winner}— Winner; person; required; Who won the duel; sample: NachoAverage (@nachoaverage).{duel.loser}— Loser; person; required; Who lost the duel; sample: SalsaQueen (@salsaqueen).{duel.challengerwon}— Starter won; flag; required; On when the one who started the duel won it; sample:true.{duel.amount}— Amount; number; required; What the winner won from the loser; 0 for a duel for glory; sample:100.{duel.currency}— Currency; text; required; The wager’s currency; empty for a duel for glory; sample:Tacos.{command}— Command; text; required; The command word, with its !; sample:!duel.{roadie.duel.winner.user_id}— Winner (id); text; required; Who won the duel — their Twitch id; sample:1001.{roadie.duel.winner.user_login}— Winner (login); text; required; Who won the duel — their Twitch login; sample:nachoaverage.{roadie.duel.winner.user_name}— Winner (display name); text; required; Who won the duel — their Twitch display name; sample:NachoAverage.{roadie.duel.loser.user_id}— Loser (id); text; required; Who lost the duel — their Twitch id; sample:1002.{roadie.duel.loser.user_login}— Loser (login); text; required; Who lost the duel — their Twitch login; sample:salsaqueen.{roadie.duel.loser.user_name}— Loser (display name); text; required; Who lost the duel — their Twitch display name; sample:SalsaQueen.{roadie.duel.challenger_won}— Starter won; flag; required; On when the one who started the duel won it; sample:true.{roadie.duel.amount}— Amount; number; required; What the winner won from the loser; 0 for a duel for glory; sample:100.{roadie.duel.currency}— Currency; text; required; The wager’s currency; empty for a duel for glory; sample:Tacos.{roadie.command.name}— Command; text; required; The command word, with its !; sample:!duel.
Fill-ins offered for this trigger
This is the editor’s event-specific fill-in list for this trigger. Person fields also expose their login, display name, Twitch ID and avatar address. Shared channel fill-ins are available separately.
{user}— Username.{user.login}— Username — their login, for links.{user.name}— Username — their display name.{user.id}— Username — their Twitch id.{user.avatar}— Username — their avatar picture, for a Discord card (picture address).{duel.winner}— Winner.{duel.winner.login}— Winner — their login, for links.{duel.winner.name}— Winner — their display name.{duel.winner.id}— Winner — their Twitch id.{duel.winner.avatar}— Winner — their avatar picture, for a Discord card (picture address).{duel.loser}— Loser.{duel.loser.login}— Loser — their login, for links.{duel.loser.name}— Loser — their display name.{duel.loser.id}— Loser — their Twitch id.{duel.loser.avatar}— Loser — their avatar picture, for a Discord card (picture address).{duel.challengerwon}— Starter won.{duel.amount}— Amount.{duel.currency}— Currency.{command}— Command.{roadie.duel.winner.user_id}— Winner (id).{roadie.duel.winner.user_login}— Winner (login).{roadie.duel.winner.user_name}— Winner (display name).{roadie.duel.loser.user_id}— Loser (id).{roadie.duel.loser.user_login}— Loser (login).{roadie.duel.loser.user_name}— Loser (display name).{roadie.duel.challenger_won}— Starter won.{roadie.duel.amount}— Amount.{roadie.duel.currency}— Currency.{roadie.command.name}— Command.
Check a run
Open the flow’s run log after a real event or a safe test. Check that the expected event fired and that its conditions matched. A connector or upstream service can prevent a real event from arriving even when a sample test succeeds.