Custom Command Variables
A comprehensive guide to using variables in your custom commands.
Note: Variables colored in purple are for the beta bot only and are currently in testing.
(customapi.URL)
Fetches data from a custom API endpoint. Replace URL with your API endpoint. Use
Examples:
In Chat:
Fetches data from a custom API endpoint. Replace URL with your API endpoint. Use
json.URL to parse the response as JSON, otherwise returns raw text.Examples:
(customapi.https://api.example.com/data) - Raw response(customapi.json.https://api.example.com/data) - JSON parsedIn Chat:
API Response: {"status": "success"}
(count)
Displays the number of times this command has been used.
Example:
In Chat:
Displays the number of times this command has been used.
Example:
(count)In Chat:
This command has been used 42 times.
(daysuntil.DATE)
Calculates the number of days until a specific date. Format: YYYY-MM-DD.
Example:
In Chat:
Calculates the number of days until a specific date. Format: YYYY-MM-DD.
Example:
(daysuntil.2024-12-25)
In Chat:
There are 42 days until Christmas.
(command.COMMAND)
Executes another custom command. Replace COMMAND with the command name.
Example:
In Chat:
Response from othercommand
Executes another custom command. Replace COMMAND with the command name.
Example:
(command.othercommand)
In Chat:
Response from othercommand
(user) | (author)
Displays the username of the person who triggered the command.
Example:
In Chat:
Displays the username of the person who triggered the command.
Example:
(user)
In Chat:
Hello, streamername!
(random.percent)
Generates a random percentage between 0% and 100%. Use (random.percent.LOWER-UPPER) for custom range.
Example:
In Chat:
Generates a random percentage between 0% and 100%. Use (random.percent.LOWER-UPPER) for custom range.
Example:
(random.percent)
In Chat:
Your random percentage is 73%.
(random.number)
Generates a random number between 0 and 100. Use (random.number.LOWER-UPPER) for custom range.
Example:
In Chat:
Generates a random number between 0 and 100. Use (random.number.LOWER-UPPER) for custom range.
Example:
(random.number)
In Chat:
Your random number is 42.
(random.pick.*)
Randomly selects one option from a list. Separate options with a period (.).
Example:
In Chat:
Randomly selects one option from a list. Separate options with a period (.).
Example:
(random.pick.Option1.Option2.Option3)In Chat:
I randomly picked: Option2
(math.*)
Performs mathematical calculations. Supports +, -, *, /, and parentheses.
Example:
In Chat:
Performs mathematical calculations. Supports +, -, *, /, and parentheses.
Example:
(math.5+3*2)
In Chat:
The result is 16.
(usercount)
Displays the total number of unique users who have used this command.
Example:
In Chat:
Displays the total number of unique users who have used this command.
Example:
(usercount)In Chat:
This command has been used by 15 unique users.
(timeuntil.DATE-TIME)
Calculates the time remaining until a specific date and time. Format: YYYY-MM-DD HH:MM.
Example:
In Chat:
Calculates the time remaining until a specific date and time. Format: YYYY-MM-DD HH:MM.
Example:
(timeuntil.2024-12-25 00:00)
In Chat:
There are 42 days, 12 hours, 30 minutes until Christmas.
(game)
Displays the current game/category being streamed.
Example:
In Chat:
Displays the current game/category being streamed.
Example:
(game)
In Chat:
Currently playing: Just Chatting
(call.COMMAND)
Calls an internal command as an alias. Replace COMMAND with the internal command name.
Example:
In Chat:
Calls an internal command as an alias. Replace COMMAND with the internal command name.
Example:
(call.ping)
In Chat:
Pong!