Chatbot Variables
We've added a new AI variable! Check out the $(ai) Variable documentation to learn how to integrate AI-generated responses into your chat commands.
Introduction to Variables in Chat Commands
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 make chat commands more flexible and powerful, allowing for a wide range of interactions and functionalities.
In addition to the ${}
syntax, we also support the $()
syntax for variables. Both of these syntaxes can be used interchangeably in chat commands. For instance, the command ${uptime shroud}
can also be written as $(uptime shroud)
.
📄️ $(7tvemotes)
Lists active 7TV emotes in a Twitch channel. Learn how to use the $(7tvemotes) variable in StreamElements Chatbot commands.
📄️ $(ai)
Learn how to use the StreamElements AI chatbot variable to generate dynamic responses in your stream chat.
📄️ $(args)
Learn how to use the $(args) variable in StreamElements chatbot commands for dynamic, user-input-based responses.
📄️ $(bttvemotes)
Learn how to use the $(bttvemotes) variable to display active BetterTTV emotes in your Twitch channel.
📄️ $(channel)
Comprehensive guide to StreamElements Chatbot $(channel) variables for streamers and moderators
📄️ $(count)
Learn how to use the $(count) variable in StreamElements Chatbot to create and manage custom counters for your stream.
📄️ $(customapi)
Learn how to use $(customapi) in StreamElements Chatbot to make API requests and display responses in chat messages.
📄️ $(ffzemotes)
Learn how to use the $(ffzemotes) variable to display active FrankerFaceZ emotes in your Twitch channel.
📄️ $(game)
Learn how to use the $(game) variable to display the current game being played on a Twitch channel.
📄️ $(getcount)
Learn how to use the $(getcount) variable in StreamElements Chatbot to retrieve counter values without incrementing them.
📄️ $(leagueoflegends)
Get a League of Legends player's rank and LP using StreamElements Chatbot. Supports Riot IDs and multiple regions.
📄️ $(math)
Learn how to use the $(math) variable in StreamElements Chatbot for performing mathematical calculations in chat messages.
📄️ $(msgid)
Learn how to use the $(msgid) variable to retrieve unique message IDs in StreamElements Chatbot commands.
📄️ $(pathescape)
Escape strings for URL paths in StreamElements Chatbot. Learn how to use $(pathescape) with syntax, examples, and parameters.
📄️ $(pointsname)
Learn how to use the $(pointsname) variable in StreamElements Chatbot to display your custom loyalty points name in chat messages and commands.
📄️ $(queryescape)
Learn how to use the $(queryescape) variable to encode strings for URL usage in StreamElements Chatbot commands.
📄️ $(quote)
Learn how to use the $(quote) command in StreamElements Chatbot to display random or specific saved quotes in your Twitch chat.
📄️ $(random)
Learn how to use StreamElements' random variables to generate dynamic content in your stream chat, including numbers, emotes, and chatters.
📄️ $(repeat)
Learn how to use the $(repeat) variable to repeat phrases in StreamElements Chatbot. Includes usage, examples, and parameters.
📄️ $(sender)
Comprehensive guide to the StreamElements Chatbot $(sender) variable for streamers and moderators
📄️ $(setgame)
Learn how to use the $(setgame) variable to change the stream game in StreamElements Chatbot. Includes usage, examples, and parameters.
📄️ $(settitle)
Change your stream title easily with the $(settitle) command. Learn how to use this StreamElements Chatbot feature with examples and usage tips.
📄️ $(stockprice)
Display real-time stock prices in your stream chat using the $(stockprice) variable. Learn usage, examples, and parameters.
📄️ $(teamfighttactics)
Get a Teamfight Tactics player's rank and LP using StreamElements Chatbot. Supports Riot IDs and multiple regions.
📄️ $(time)
Learn how to use StreamElements Chatbot time variables to display current time and countdowns in your stream chat.
📄️ $(title)
Learn how to use the $(title) variable to display a channel's title in StreamElements Chatbot.
📄️ $(touser)
Learn how to use the $(touser) variable in StreamElements Chatbot to display a user's name or a specified word in chat messages.
📄️ $(twitchemotes)
Learn how to use the $(twitchemotes) variable to display all available Twitch subscriber emotes in your stream chat.
📄️ $(uptime)
Learn how to use the $(uptime) variable in StreamElements Chatbot to display stream uptime for any user.
📄️ $(user)
Comprehensive guide to the StreamElements Chatbot $(user) variable for streamers and moderators
📄️ $(weather)
Learn how to use the $(weather) variable to display current weather conditions for any location in your StreamElements chatbot.