Chat Command
The Chat Command trigger fires whenever a viewer types a specific command in your Twitch chat. Commands are messages that start with a prefix you define, such as !hello or !dice. This is one of the most commonly used triggers, letting you build interactive chat experiences without writing a single line of code.
When the command is detected, the trigger provides information about the viewer who used it and the full message they sent (including any arguments after the command name).
Outputs
| Name | Type | Description |
|---|---|---|
User | User | The viewer who typed the command. |
Message | Message | The full chat message that triggered the command. |
Configuration
- Command: The command name to listen for (e.g.,
!hello). Viewers must type this exact command in chat to activate the trigger.
Example
Create a !shoutout command that, when typed by a moderator, reads the message argument and sends a shoutout message for the mentioned user. Combine this with an Is Moderator check node to make sure only mods can use it.