Variables & Dynamism
Variables are “special codes” that Bearry replaces with real information when sending the message. They make your commands dynamic and personalized.
Native Variables (Ready to use)
Section titled “Native Variables (Ready to use)”Use these variables in any command to make it more interactive:
| Variable | Description | Example 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. |
Custom Variables (Create your own)
Section titled “Custom Variables (Create your own)”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.
How to configure via Interface
Section titled “How to configure via Interface”- In the Responses tab, write your text with the variable in braces (e.g.,
I like {fruit}). - Go to the Advanced tab.
- You will see a section called “Custom Variables” with the name
{fruit}you just created. - Type the possible values (e.g.,
apple,banana,grape) and add them one by one. - Save the command.
- Result: The bot will choose one of these items randomly each time the command is used.
How to configure via Chat
Section titled “How to configure via Chat”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”.
Managing Values via Chat
Section titled “Managing Values via Chat”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).
- Ex:
- Remove item:
!custom removevalue <command> <variable> <value>- Ex:
!custom removevalue fruit f banana(Banana will no longer appear).
- Ex:
- List items:
!custom listvalues <command> <variable>- Ex:
!custom listvalues fruit f(Shows: apple, grape, orange).
- Ex: