Variables triggers¶
Global variable created¶
Runs when a global variable is saved for the very first time. Global variables are values Cuebot remembers for all actions, like a death counter.
| Setting | What to put in |
|---|---|
| Variable name | The variable's name without the ~ signs, like "deaths". Empty means any variable. |
| Persisted | Either = both kinds. Yes = only variables that are kept after a restart. No = only temporary ones that vanish when Cuebot closes. Options: Either, Yes, No. Starts as: Either. |
Variables you get
| Variable | What it holds |
|---|---|
%variableName% |
The name of the variable |
%newValue% |
The value it was given |
%persisted% |
Whether it is kept after a restart (true or false) |
Type id: variables.globalCreated
Global variable deleted¶
Runs when a global variable is deleted. Be careful with actions that delete the same variable they are listening for.
| Setting | What to put in |
|---|---|
| Variable name | The variable's name without the ~ signs, like "deaths". Empty means any variable. |
| Persisted | Either = both kinds. Yes = only variables that are kept after a restart. No = only temporary ones that vanish when Cuebot closes. Options: Either, Yes, No. Starts as: Either. |
Variables you get
| Variable | What it holds |
|---|---|
%variableName% |
The name of the variable that was deleted |
%oldValue% |
The value it had |
%persisted% |
Whether it was a kept variable (true or false) |
Type id: variables.globalDeleted
Global variable updated¶
Runs when the value of an existing global variable changes. Handy to react to a counter, like a message when the death counter reaches a new number.
| Setting | What to put in |
|---|---|
| Variable name | The variable's name without the ~ signs, like "deaths". Empty means any variable. |
| Persisted | Either = both kinds. Yes = only variables that are kept after a restart. No = only temporary ones that vanish when Cuebot closes. Options: Either, Yes, No. Starts as: Either. |
Variables you get
| Variable | What it holds |
|---|---|
%variableName% |
The name of the variable |
%oldValue% |
What it was before |
%newValue% |
What it is now |
%persisted% |
Whether it is kept after a restart (true or false) |
Type id: variables.globalUpdated
User variable updated¶
Runs when a variable that belongs to one viewer changes, like their lucky number or their quiz score. Careful: an action that changes the same variable can run itself again.
| Setting | What to put in |
|---|---|
| Variable name | The variable's name, like "score". Empty means any variable. |
| Persisted | Either = both kinds. Yes = only variables that are kept after a restart. No = only temporary ones. Options: Either, Yes, No. Starts as: Either. |
| User login | Only react to this viewer, typed like their chat name, for example "kris". Empty means any viewer. |
| Platform | Only react to viewers on this site, like twitch, youtube, kick or rumble. Empty means any. |
Variables you get
| Variable | What it holds |
|---|---|
%variableName% |
The name of the variable |
%oldValue% |
What it was before |
%newValue% |
What it is now |
%user% |
The viewer's name |
%userId% |
The viewer's id on their platform |
%platform% |
The site the viewer is on, like twitch |
Type id: variables.userUpdated