Skip to content

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.

Thanks for subscribing for {amount} at {subtype}, {user}!

For a Twitch resub activity, this can produce:

Thanks for subscribing for 12 months at Tier 1, Alex!

Change the words around the variables to customize or translate the response.

VariableUseExample
{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.

Use {system_message} on its own to display the platform’s activity message:

{system_message}

This is different from the viewer’s message ({message}). It is empty when the activity has no system message.

For a donation:

Thanks for donating {amount}, {user}!

For a gifted subscription with a recipient and tier:

Thanks for gifting a {subtype} sub to {recipient}, {user}!

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.

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.