Skip to content

Custom Commands

In addition to the default commands, you can also create your own custom commands. Custom commands allow you to create commands that are tailored to your channel and your community. You can use custom commands to create unique interactions and functionalities that are not possible with the default commands.

There are two ways to manage custom commands:

  1. Through the creator dashboard
  2. Directly in chat with the !command command

See Getting Started for a step-by-step walkthrough of creating a command in the dashboard.

Action Syntax Example
Add !command add !<name> <response> !command add !socials Follow me on Twitter @MyHandle!
Edit !command edit !<name> <new_response> !command edit !socials Check out my links: example.com/links
Remove !command remove !<name> !command remove !socials
Show !command show !<name> !command show !socials
Options !command options !<name> <option> <value> !command options !socials -cd 10 -level 500

For the full subcommand reference, including all available options, permissions, and aliases, read the documentation for the !command command.

This command greets the user and tells them when they last visited the stream.

!cmd add !hello $(user), welcome to the stream! You last visited $(user.lastseen) ago.
Example chat
Viewer123:!hello
partner badgemoderator badgeStreamElements:Viewer123, welcome to the stream! You last visited 2 days 5 hours ago.

Variables used:

This command shows how long the stream has been live, the current game, and viewer count.

!cmd add !stream The stream has been live for $(uptime). We're currently playing $(channel.game) for $(channel.viewers) viewers!
Example chat
Viewer123:!stream
partner badgemoderator badgeStreamElements:The stream has been live for 2 days 5 hours. We're currently playing Fortnite for 1234 viewers!

Variables used:

This command checks the weather for a location specified by the viewer.

!cmd add !weather $(sender), weather in: $(weather ${1:})
Example chat
Viewer123:!weather Tokyo
partner badgemoderator badgeStreamElements:Viewer123, weather in: Tokyo, Japan: 🌜 17.7 °C (63.9 °F). Feels like 17.7 °C (63.9 °F). Patchy rain nearby. Wind is blowing from the South at 9.7 km/h (6.0 mp/h). 89% humidity. Visibility: 10 km (6 miles). Air pressure: 1008 hPa.

Variables used:

  • $(sender) - The viewer who triggered the command
  • ${1:} - The arguments passed to the command, here the location to look up
  • $(weather) - The current weather in a specified location

This command sends a simple shoutout to a specified user.

!cmd add !shoutout Check out ${1}, they are playing $(game ${1}) at https://twitch.tv/${1}
Example chat
Viewer123:!shoutout Styler
partner badgemoderator badgeStreamElements:Check out Styler, they are playing Counter-Strike at https://twitch.tv/Styler

Variables used:

  • ${1} - The first argument passed to the command, here the name of the user to shout out
  • $(game) - The game the user is currently playing