Bot Variables

Overview

Bot variables replace placeholders automatically when a message is sent. This lets you make responses dynamic without hardcoding every detail.

Syntax

The standard form is $(name). Alternatives also work: ${name} and for positional arguments {1}, {2}, etc.

Examples

Welcome, $(sender)!

You wrote: $(query)

Search term (URL): $(querystring)

Random chatter: $(randomuser)

Where to use them in the dashboard

You can use variables in Bot → Commands, Bot -> Timer, Bot -> Chat Alerts, and Chat Automation -> Raid Shoutout, as well as in Stream Tools -> Clip Command when using a custom response template.

Notes

  • Variables are replaced only in text fields, not in names or labels.
  • If no value is available, the variable stays empty.
  • What your viewers type – for example through $(query) or $(1) – is never evaluated as a variable itself. If someone types $(…) in chat, it appears as plain text.

Frequently asked questions

What are ByteMate bot variables?

Bot variables are placeholders that are replaced automatically when the bot sends a message. They let you make responses dynamic without hardcoding every detail – for example $(sender), $(uptime), or $(randomuser).

How do I write a variable in a command?

The standard syntax is $(name). The alternative forms ${name} and the positional forms {1}, {2}, etc. for arguments also work.

Where can I use bot variables in the dashboard?

Variables work in Bot Commands, Timers, Chat Alerts, the Raid Shoutout in Chat Automation, and in the Clip Command response template under Stream Tools. They are only replaced inside text fields, not in names or labels.