Put these in a custom command's response or a timer's message, and SasaBot fills them in every time it posts. The StreamElements spelling works too (${random.pick 'a' 'b'}, ${random.chatter}), so old commands can be pasted as they are. Variables can be nested: ${cmd weather ${1}}.
Examples:
${user} hugs ${touser} ${emote}${user} is ${random 0-100}% based ${emote ez}${emote} Stream has been going for ${uptime}, playing ${game} ${emote}${user}'s fate: ${pick win | lose | draw} ${emote}| Variable | What it does |
|---|---|
${user} | Name of whoever used the command. In timers: someone who chatted recently. |
${touser} | The first word after the command (without @), or the user if there is none. For things like !hug @someone. |
${1} ${2} ... | The first, second... word after the command. ${2+} is everything from the second word on. |
${args} | Everything written after the command. |
${channel} | The channel name. |
${count} | How many times the command was used (for timers: how many times it was posted). |
${emote} | A random emote from this channel's 7TV set, always, when the channel has one (a global 7TV one only if it doesn't). ${emote 3} gives three. |
${emote global} | A random global 7TV emote. |
${emote sad} | An emote for a mood from the channel's 7TV set: a known one like Sadge, else one with the mood in its name (TriSad, sadCat), else any emote of the set. Moods: happy, good, sad, bad, okay, dank, strong, weird, stare, ez, clap, waytoodank, scared, laugh, corn, rain, thunder, snow, tea. |
${random 1-100} | A random number in the range. Also ${random.1-100}. |
${pick red | green | blue} | One of the options at random. Also ${random.pick 'red' 'green' 'blue'}. |
${chatter} | Someone who wrote in chat in the last 30 minutes. Also ${random.chatter}. |
${chatters} | How many people wrote in chat in the last 30 minutes. |
${user.id} ${user.name} | The user's Twitch ID and login (${user} is the display name). |
${level} | The user's role here: broadcaster, moderator, VIP or viewer. |
${bot} | SasaBot's own name. |
${messages} | How many messages the user wrote in this channel. ${messages someone} for another user. |
${followage} | How long the user has followed the channel. ${followage someone} for another user. |
${accountage} | How old the user's Twitch account is. ${accountage someone} for another user. |
${avatar} | Link to the user's profile picture. ${avatar someone} for another user. |
${uptime} | How long the stream has been live. ${uptime forsen} for another channel. |
${game} | The channel's category, also while offline. ${game ${touser}} is handy for shoutouts. |
${title} | The stream title. ${title forsen} for another channel. |
${viewers} | Current viewer count. Also ${channel.viewers}. |
${followers} | The channel's follower count. Also ${channel.followers}. |
${laststream} | When the last stream started ("live now" if it's on). |
${counter deaths +1} | Named counters that remember their value: ${counter deaths} shows it, +1 / -1 changes it, =0 sets it. For death counters and the like. |
${time} | Current time. Moscow time in channels set to Russian, UTC otherwise. ${time Europe/Berlin} for any other zone. |
${date} | Today's date, same time zone rules as ${time}. |
${weekday} | Today's day of the week. |
${countdown 2026-12-31 23:59} | Time left until that moment (same time zone as ${time}, or add one: ... Europe/Berlin). Also 31.12.2026. |
${since 2024-01-01} | Time passed since that moment. |
${8ball} | A magic 8-ball answer. |
${coin} | Heads or tails. |
${roll 2d6} | Rolls dice (1d6 by default) and gives the sum. |
${percent} | A random percentage, 0% to 100%. |
${upper text} ${lower text} | The text in UPPER or lower case, e.g. ${upper ${args}}. |
${urlencode text} | Makes text safe for a link: google.com/search?q=${urlencode ${args}}. |
${math 2+2*2} | Calculates an expression (like $math). |
${weather Moscow} | The weather somewhere (like $weather). |
${cmd weather Moscow} | Runs any SasaBot command and inserts its reply. Up to 3 commands (including ${math} and ${weather}) per message. Variables work inside: ${cmd followage ${user}}. |