Activity
Use these variables in a command response to thank a follower, acknowledge a donation, or welcome a raid. They use the activity that triggered the command.
Build a custom message
Section titled “Build a custom message”For a Twitch resub activity, this can produce:
Change the words around the variables to customize or translate the response.
Variables
Section titled “Variables”| Variable | Use | Example |
|---|---|---|
{user} | Name of the person who triggered the activity. | Alex |
{recipient} | Display name of the first gift recipient, when available. | Jamie |
{value} | Activity value, adjusted for decimal places. | 12 |
{unit} | Unit for the value, with singular or plural wording. | months |
{amount} | Formatted value with currency or the singular/plural unit. | $12.34, 1 sub, 12 months |
{type} | Readable activity type. | Resub |
{subtype} | Subscription tier, reward name, or other activity subtype. | Tier 1 |
{message} | Message supplied with the activity, when available. | Great stream! |
{provider} | Platform that created the activity. | twitch |
{system_message} | Ready-to-display message supplied by the platform. | Alex gifted 5 subs |
The available details depend on the activity and platform. For example, a follow does not have a donation amount or subscription tier.
Platform system message
Section titled “Platform system message”Use {system_message} on its own to display the platform’s activity message:
This is different from the viewer’s message ({message}). It is empty when the activity has no system message.
Donations and gifts
Section titled “Donations and gifts”For a donation:
For a gifted subscription with a recipient and tier:
Value and amount
Section titled “Value and amount”Use {amount} for a complete amount: $12.34, 1 sub, 12 months, or 100 bits.
It includes the currency when present, otherwise the activity’s singular or plural unit.
Use {value} and {unit} separately when you want to customize or translate the wording.
Chat-triggered commands
Section titled “Chat-triggered commands”Activity-specific variables are left unchanged when there is no activity trigger.
{user} still works in chat-triggered commands as described on the User page.