Skip to content

$(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.

!command add !randomquote $(quote)
Example chat
ViewerName:!randomquote
partner badgemoderator badgeStreamElements:#12 That was the play of the century!

Embed $(quote) in a custom command. You can optionally specify a quote ID to display a specific quote.

  1. Display a random quote:

    $(quote)
  2. Display a specific quote by ID:

    $(quote 3)

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.

  • 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.

  • !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.