Chatbot Variables
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 the channel.
๐๏ธ $(ai)
This variable is currently in beta. It may be subject to change.
๐๏ธ $(args)
Outputs an argument from the command.
๐๏ธ $(bttvemotes)
Lists the active BetterTTV emotes in the channel.
๐๏ธ $(channel)
Learn how to use channel-specific variables in your Twitch chatbot to display channel name, viewers, followers, subscribers, and more.
๐๏ธ $(count)
Displays the command name counter and increments by one.
๐๏ธ $(customapi)
Makes a request to a specified URL and the response is returned.
๐๏ธ $(ffzemotes)
Lists the active FrankerFaceZ emotes in the channel.
๐๏ธ $(game)
Displays the current game
๐๏ธ $(getcount)
Returns the current value of a counter without incrementing it.
๐๏ธ $(leagueoflegends)
Outputs the summoner rank and LP of a specified League of Legends player
๐๏ธ $(math)
Outputs the result of a math.js expression.
๐๏ธ $(msgid)
Outputs the message ID of the message that triggered the command.
๐๏ธ $(pathescape)
Escapes a string for use in a URL path
๐๏ธ $(pointsname)
Displays the loyalty currency name.
๐๏ธ $(queryescape)
Outputs the query string escaped for use in a URL.
๐๏ธ $(quote)
Displays a randomly saved quote.
๐๏ธ $(random)
Allows you to generate random output from a list of options.
๐๏ธ $(repeat)
Repeats a phrase x times
๐๏ธ $(sender)
Displays the message senderโs display name
๐๏ธ $(setgame)
Changes the stream game.
๐๏ธ $(settitle)
Changes the stream title.
๐๏ธ $(stockprice)
Displays the current stock price of a given stock symbol.
๐๏ธ $(time)
$(time.timezone)
๐๏ธ $(title)
Displays the channelโs title
๐๏ธ $(touser)
Displays either the first word after the command $[1], or the senderโs name. This is an alias for $(1|sender)
๐๏ธ $(twitchemotes)
Outputs all available Twitch subscriber emotes
๐๏ธ $(uptime)
Displays the uptime of the current stream
๐๏ธ $(user)
Displays the userโs display name
๐๏ธ $(weather)
Displays the current weather conditions for a given location.