Initiating EconomyCord

Creating an instance of the EconomyCord class

We will create an instance of theEconomyCord class so that we can easily use all of the functions inside of it.

import discord
from discord.ext import commands
from economycord import EconomyCord
‚Äč
bot=commands.Bot(command_prefix="prefix", intents=discord.Intents.all())
EcoCord=EconomyCord(database_dir="./databases", starting_balance=250, auto_check_users=True)

You can set the database_dir to ""if you would like it to be in no specific folder. Otherwise, the folder you set must be already made, it won't make the folder for you but it will make the database file for you.

You can call the EconomyCord instance anything you'd like!

You have now set up the EconomyCord class!

One last thing, make sure not to delete the data.db folder unless you want to reset all data