# Variables

## ≡ What are these ?

Variables are used to store configuration settings and temporary data during the execution of commands. They are defined in <mark style="color:green;">config.py</mark> file and can be customized by users.

In catuserbot there is two types of variables: [<mark style="color:blue;">**Config Variables**</mark>](variables/config-vars) & [<mark style="color:blue;">**Database Variables**</mark>](variables/database-vars) , understanding how variables work is crucial for customizing the bot to specific needs.

## ≡ Where it save the data?

The database variables are get saved to your database that you set with [<mark style="color:blue;">**DB\_URI**</mark>](config-vars#db_uri) & the config variables are get saved to either <mark style="color:green;">config.py</mark> or in your <mark style="color:green;">app environment</mark> depending [<mark style="color:blue;">**ENV**</mark>](config-vars#env) variable.

## ≡ How to save var?

You can edit your <mark style="color:green;">config.py</mark> or in your <mark style="color:green;">app environment</mark> manually or can set by using bot itself by doing `.set var <Variable-Name> <Value>` . Check `.help var` or config and Database vars section for more info on this.

example <mark style="color:blue;">`.set var REM_BG_API_KEY b12a23tRBvX45UcLi`</mark> **(Get your own key, this is just an example)** :joy:

_Set all the other desired vars as per above shown example._
