Create custom command
commands_createCreate custom chat bot commands for StreamElements by defining a trigger and reply, with optional aliases, cooldowns, permissions, and loyalty point costs.
Instructions
Create a custom chat bot command.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Loyalty points it costs to use | |
| type | No | Response type; 'say' (the default) posts the reply in chat | |
| regex | No | Regular expression that triggers the command | |
| reply | Yes | Response text; supports StreamElements variables such as ${user} and ${count} | |
| hidden | No | Hide it from the public command list | |
| aliases | No | Other names that trigger the command | |
| channel | No | StreamElements channel id (24-char hex). Defaults to SE_CHANNEL_ID or the channel that owns the token. | |
| command | Yes | Command name without the ! prefix, e.g. 'discord' | |
| enabled | No | Whether the command is enabled | |
| cooldown | No | Cooldowns in seconds | |
| keywords | No | Words that trigger the command anywhere in a message | |
| accessLevel | No | Minimum permission level to use it. StreamElements permission levels: 100 everyone, 250 subscriber, 300 regular, 400 VIP, 500 moderator, 1000 super moderator, 1500 broadcaster | |
| enabledOnline | No | Whether it works while the stream is live | |
| enabledOffline | No | Whether it works while the stream is offline |