Chat commands support variables in a dynamic way. Variables are placeholders that can be used in chat commands to represent a specific value or piece of information. When a command is triggered, these variables are replaced with the actual values they represent.
For example, in the command $(uptime shroud), shroud is a variable representing a username. When this command is executed, the uptime of the user shroud is returned.
Variables are placeholders you put in a command response; the bot replaces them with live values — the sender’s name, the current game, a random number — when the command runs.
Note
Variables work on all platforms unless a page notes otherwise — on YouTube, $(user) (and its sub-variables), $(game), and $(redeem) are not available.
Variable Description $(channel)Channel information such as name, viewer count, followers, and subscribers. $(game)Display the current game on a Twitch channel. $(provider)Display the platform the channel runs on: twitch, youtube, or kick. $(title)Display a channel's title. Also available as $(status). $(uptime)Display stream uptime for any channel.
Variable Description $(msgid)Retrieve the unique message ID. $(pointsname)Display the channel's custom loyalty points name. $(redeem)Redeem a loyalty store item straight from a chat command. $(sender)Information about the user who triggered the command. Also available as $(source). $(touser)Display a user's name or a specified word. $(user)User information such as name, points, and rank; accepts a username argument. Command ArgumentsAccess the words of the message that triggered the command.
Variable Description $(count)Create and manage custom counters. $(getcount)Retrieve a counter value without incrementing it. $(quote)Display random or specific saved quotes.
Variable Description $(leagueoflegends)Get a League of Legends player's rank and LP. $(pubg)Display PUBG player statistics like K/D, wins, and rating. $(teamfighttactics)Get a Teamfight Tactics player's rank and LP. Also available as $(tft).
Variable Description $(customapi)Make an API request and display the response in chat. Also available as $(urlfetch). $(if)Show different responses depending on a true/false condition. $(math)Perform mathematical calculations in chat messages. $(pathescape)Escape a string for use in a URL path. Also available as $(pathencode). $(queryescape)Encode a string for use in a URL query. Also available as $(queryencode). $(repeat)Repeat a phrase a specified number of times. $(stockprice)Display real-time stock prices. $(time)Display the current time in a timezone, or a countdown. $(weather)Display current weather conditions for a location.
Variable Description $(ai)Generate AI responses in chat. Also available as $(chatgpt). $(random)Generate random numbers, emotes, or chatters.