Way 1: on the Database page
1
Open the Database page
Press Database in the sidebar.
2
Start a new variable
Open the Start from scratch tab.
In a hurry? The What do you want to make? tab has ready-made ideas. Pick one and DogeBot makes it for you, then shows the new
{DBVAR_...} names you can use.3
Give it a name
Type
coins.Good names are short and tell you what is inside. Use small letters. If you use spaces or dashes, DogeBot turns them into _, so daily reward becomes daily_reward.4
Pick the type
We want every member to have their own coins, so pick User.Then DogeBot asks what each member stores. Coins are a number, so pick Number.
Not sure which type to pick? Read Types of variables. The short version: User means “every person has their own”.
5
Pick the scope
Pick Server Specific if each Discord server should have its own coins. Pick Global if a member’s coins should be the same in every server your bot is in. Most people pick Server Specific. See Server or Global.
6
Give it a starting value
Type
0. Every new member starts with 0 coins.7
Save
Press the button to create it. You see Variable Created:
{DBVAR_coins} is ready to use in your commands and events.Way 2: inside the builder
This is handy when you are in the middle of building a command and notice you need a new box.1
Open the Variables panel
In the builder, look at the thin bar on the far left. Press Variables.
2
Create a new one
Press Create New Variable. A window opens with the same choices as the Database page: name, type, scope and starting value.
3
Save it
Press Add Custom Variable. The new variable shows in the list with its
{DBVAR_...} name and its starting value.Variables made in the builder are saved in the same place as the Database page, so you always see them in both places.
Now use it!
Your box is ready, and it holds 0. Next:- Show it in a message, like
You have {DBVAR_coins} coins. - Change it with a block, like “add 100 coins”.
