Skip to content

Variables

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.

VariableDescription
$(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.
VariableDescription
$(setgame)Change the stream's game category.
$(settitle)Change the stream title.
VariableDescription
$(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.
VariableDescription
$(7tvemotes)List active 7TV emotes in the channel.
$(bttvemotes)Display active BetterTTV emotes in the channel.
$(ffzemotes)Display active FrankerFaceZ emotes in the channel.
$(twitchemotes)Display available Twitch subscriber emotes.
VariableDescription
$(count)Create and manage custom counters.
$(getcount)Retrieve a counter value without incrementing it.
$(quote)Display random or specific saved quotes.
VariableDescription
$(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).
VariableDescription
$(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.
VariableDescription
$(ai)Generate AI responses in chat. Also available as $(chatgpt).
$(random)Generate random numbers, emotes, or chatters.