Skip to main content

$(pick)

$(pick option | option | option)

Displays one of the |-separated options, chosen at random. Great for giving chat responses and alerts some variety.

The choice is made once each time the template resolves — in a flow that's once per run; in an overlay it re-rolls when the underlying data changes (it does not re-roll every second).

Examples

$(pick Welcome | Hey there | Yo)

Will display one of "Welcome", "Hey there" or "Yo"

$(pick Welcome | Hey there | Yo), {{username}}!

Will display e.g. "Hey there, NightBot!"