Skip to content

Guides / Building

Saving data: variables

Keep XP, warnings or giveaway entries between runs.

“Set variable” stores a value for this run, for each person, for each server or chat, or for the whole bot. Operations: set, add (numbers), add to list, remove from list, clear. The new value is available right away as {{var.name}}.

“Load variable” reads a saved value into {{var.name}} in another run, for example in a /rank command.

Each value can be up to 64 KB. Values stay until you clear them or delete the bot.