System status
// STREAMION.BOT DOCS

All about streamion.bot.

Sign-in flow, chat commands, event responses, alerts, music integrations — the full reference for your bot configuration.

Custom commands

Custom commands are chat commands you create yourself: a trigger and a response text. No code or scripting is involved. They are typically used for recurring questions and announcements such as !discord, !schedule, !socials, !lurk or !setup — and, with variables, for small interactive commands such as !hug or !roll.

Creating a command

  1. Open Chat Bot → Commands (/commands).
  2. Click New command. A side panel opens.
  3. Fill in:
    • Trigger — e.g. !discord. It starts with !, followed by 1 to 31 lowercase letters, digits, _ or - (at most 32 characters in total); capital letters are converted to lowercase. It must not match another custom command's trigger. (If it matches a built-in command, your custom command runs instead.)
    • Response — the message the bot sends back (up to 400 characters). You can drop in variables such as {displayname} or {random(1,6)} — see Variables.
  4. If you need them, open Advanced:
    • Aliases (optional) — extra triggers that produce the same response, separated by commas. Up to 10, same format as the trigger.
    • Global cooldown (s) and Per-user cooldown (s) — 0 means no limit. See Cooldowns.
    • Minimum role — who can use the command; Everyone unless you change it. See Permissions.
  5. Click Create. The command works in chat straight away.

Variables

Responses can include variables that are filled in when the command runs:

VariableReplaced withExample
{user}The chatter's Twitch login (lowercase)kiwi_dev
{displayname}The chatter's display nameKiwi_Dev
{channel}Your channel's loginyourchannel
{touser}The person the chatter addresses: the first word after the command, without a leading @. If nothing follows the command, the chatter's own display name.!hug @maria → maria
{args}Everything the chatter typed after the command. Empty if nothing follows.!say hello everyone → hello everyone
{random(min,max)}A random whole number between the two values, both included{random(1,6)} → 4
{pick(a|b|c)}One of the options, picked at random. Separate the options with |.{pick(heads|tails)} → tails

A few details:

  • {random(min,max)} — the order of the two numbers does not matter, and negative numbers are allowed. Each number can have up to nine digits. If a response contains the variable several times, every occurrence gets its own number.
  • {pick(…)} — spaces around an option are ignored, and an option may contain commas, but no curly braces.
  • Anything in curly braces that is not one of these variables — a mistyped one, for example — is sent as written.
  • Text a viewer types reaches the response through {args} and {touser} as plain text; variables inside it are not filled in.
  • The finished message is cut off after 500 characters, Twitch's limit for a chat message. That can happen when {args} is long.

You do not have to remember the variables: under the Response field the editor shows a chip for each one after Insert variable. A click inserts it at the cursor position. {random(1,100)} and {pick(a|b|c)} are inserted as working examples — replace the numbers and options with your own.

Examples

TriggerResponseIn chat
!hug{displayname} hugs {touser}.!hug @maria → Kiwi_Dev hugs maria.
!roll{displayname} rolls a {random(1,6)}.!roll → Kiwi_Dev rolls a 4.
!coin{pick(Heads|Tails)}!coin → Tails

Editing and deleting

Click a command's row on the Commands page to open it in the side panel, change what you need and click Save. The switch at the end of the row turns the command off and on without opening it.

Delete at the bottom of the panel removes the command after you confirm. Deleting is permanent — switching a command off is not.

Tips

  • Keep responses short. A response can be up to 400 characters, but short answers are easier to read in a busy chat.
  • Reserve quick aliases for popular commands (!d for !discord).
  • Use a high per-user cooldown for commands that print long messages, so chatters can't flood the channel.
  • Disable rather than delete while you experiment — settings are kept.