📚Variables

≡ What are these ?

Variables are used to store configuration settings and temporary data during the execution of commands. They are defined in config.py file and can be customized by users.

In catuserbot there is two types of variables: Config Variables & Database Variables , 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 DB_URI & the config variables are get saved to either config.py or in your app environment depending ENV variable.

≡ How to save var?

You can edit your config.py or in your app environment 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 .set var REM_BG_API_KEY b12a23tRBvX45UcLi (Get your own key, this is just an example) 😂

Set all the other desired vars as per above shown example.

Last updated