Roadie

Rock, paper, scissors result event

Automation · 3 min read ·

A !rps game against the Chat Bot ended. Fires for every command that runs the Rock, paper, scissors step, after its line.

Rock, paper, scissors result (commands.rps_result) — A !rps game against the Chat Bot ended. Fires for every command that runs the Rock, paper, scissors 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 played; sample: NachoAverage (@nachoaverage).
  • {rps.outcome} — Outcome; choice; required; Whether they won, lost or drew against the Chat Bot; choices: win, lose, draw; sample: win.
  • {rps.you} — Their pick; choice; required; What they threw; choices: rock, paper, scissors; sample: rock.
  • {rps.bot} — Chat Bot’s pick; choice; required; What the Chat Bot threw; choices: rock, paper, scissors; sample: scissors.
  • {command} — Command; text; required; The command word, with its !; sample: !rps.
  • {roadie.rps.outcome} — Outcome; choice; required; Whether they won, lost or drew against the Chat Bot; choices: win, lose, draw; sample: win.
  • {roadie.rps.you} — Their pick; choice; required; What they threw; choices: rock, paper, scissors; sample: rock.
  • {roadie.rps.bot} — Chat Bot’s pick; choice; required; What the Chat Bot threw; choices: rock, paper, scissors; sample: scissors.
  • {roadie.command.name} — Command; text; required; The command word, with its !; sample: !rps.

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).
  • {rps.outcome} — Outcome.
  • {rps.you} — Their pick.
  • {rps.bot} — Chat Bot’s pick.
  • {command} — Command.
  • {roadie.rps.outcome} — Outcome.
  • {roadie.rps.you} — Their pick.
  • {roadie.rps.bot} — Chat Bot’s pick.
  • {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.

Browse events · Use fill-ins