Skip to content

Variables & Dynamism

Variables are “special codes” that Bearry replaces with real information when sending the message. They make your commands dynamic and personalized.

Use these variables in any command to make it more interactive:

VariableDescriptionExample Result
{user}The name of who typed the command.”Hello John!”
{random:1-100}A random number between defined values.”Your luck is 7.”
{count}A counter that increases with each use.”I’ve died 2 times.”
{uptime}Total time the stream has been online.”3h 15m 20s”
{game}Current game/category of the stream.”Minecraft”
{title}Current stream title.”Playing with subs!”
{viewers}Number of viewers watching now.”150”
{followers}Total number of followers.”1250”
{date} / {time}Current date and time.”12/05/2025”
{arg1}, {arg2}Words the person typed with the command.{arg1} becomes @Peter if using !slap @Peter.

You can create your own lists of random words! This is great for fun commands.

Imagine a command !fruit that replies “I like apple” or “I like banana” randomly. To do this, you create a variable (let’s call it {f}) and define its values.

  1. In the Responses tab, write your text with the variable in braces (e.g., I like {fruit}).
  2. Go to the Advanced tab.
  3. You will see a section called “Custom Variables” with the name {fruit} you just created.
  4. Type the possible values (e.g., apple, banana, grape) and add them one by one.
  5. Save the command.
  6. Result: The bot will choose one of these items randomly each time the command is used.

The syntax is simple: \{name=value1,value2,value3\}.

Important: You must place the variable in the phrase (\{f\}) AND define its values at the end (\{f=...\}).

Example: !custom create fruit I like \{f\} \{f=apple,banana,grape\} The bot understands: The answer is “I like {f}” and variable f can be “apple”, “banana”, or “grape”.

You can add or remove items from your lists without editing the entire command:

  • Add item: !custom addvalue <command> <variable> <value>
    • Ex: !custom addvalue fruit f orange (Now “orange” can also appear).
  • Remove item: !custom removevalue <command> <variable> <value>
    • Ex: !custom removevalue fruit f banana (Banana will no longer appear).
  • List items: !custom listvalues <command> <variable>
    • Ex: !custom listvalues fruit f (Shows: apple, grape, orange).