$(quote)
- Syntax
$(quote [id])- Arguments
- Optional
The $(quote) variable allows you to display a randomly saved quote or a specific quote by ID in your Twitch chat using the StreamElements Chatbot.
Use it
Section titled “Use it”!command add !randomquote $(quote)Embed $(quote) in a custom command. You can optionally specify a quote ID to display a specific quote.
-
Display a random quote:
$(quote) -
Display a specific quote by ID:
$(quote 3)
Output
Section titled “Output”The variable outputs the quote in the format #<id> <text>, for example:
#3 That was the play of the century!If the quote doesn’t exist (or there are no quotes yet), the variable outputs quote not found. If the ID isn’t a number, the variable is not replaced and appears as literal text in the response.
Parameters
Section titled “Parameters”id(optional): The ID of the specific quote you want to display. If not provided, a random quote will be shown.
The variable mirrors the lookup behavior of the !quote command: no argument shows a random quote, and an ID shows that specific quote.
Related Commands
Section titled “Related Commands”!quote: Add, remove, or display quotes in chat
Q: Can I use $(quote) in custom commands?
A: Yes, you can include $(quote) in your custom commands to display quotes as part of the command’s response.
Q: What happens if I ask for a quote ID that doesn’t exist?
A: The variable outputs quote not found.