An economy discord bot made in python, if you want to check out the discord
/fee
- Slash command, allows users to calculate the current withdraw fee/interest
- Slash command, allows users to calculate the current interest rate/bal
- Slash command, shows user his personal balance/flex
- Slash command, shows users his personal balance and his username along side it/pay
- Slash command, allows user to pay another user via there username/withdraw
- Slash command, allows user to withraw (sends the funds to the Owner's balance)
allbalance
- All balance ctx command, sums up all balances, except for the owner's balance, and gives an entire bank balance amount (admin only)logs
- Logging ctx command, for logging theBal.json
file manually, it is logged automaticlly every week before and after interest payment (admin only)pay_interest
- Paying interest ctx command, for mannually paying interest, it is done automaticlly every week (admin only)
TOKEN = ""
- Put in your discord bot token, you can get yours hereOWNER
- Put owner discord id here (int)co_OWNER
- Put co-owner discord id here (int)bank_name
- Put your desired bank name here (str)interest_rate
- Put your desired the interest rate here % (float)withdraw_fee
- Put your desired withdraw fee rate % (float)emoji
- Put your desired emoji here, used to mark withdrawl messages in withdraws channelcolour_stripe
- Discord message embed stripe color (discord.Colour() object)
withdraws
- Withraw discord channel idlog
- Logs discord channel idallbal
- All balance command discord channel idConsole_channel
- Console discord channel idinterest_channel
- Interest discord channel iderror_channel
- Errors discord channel idserver_id
- Discord server id
{
"accounts": [
{
"user_id": (int),
"balance": (int)
},
{
"user_id": (int),
"balance": (int)
}
]
}
main.py
- Main python discord bot file, defines the roles and channels it uses, handles the frontend and makes all commandsresponses.py
- Backend python file, holds and manipulates all balancesBal.json
- Stores all user ids and there respective balances
discord.py
- Python discord botdatetime
- Time handilingpytz
- For timezonesasyncio
- Discord bot reconnection looptime
- For unix time handlingjson
- Allows you to interect and manipulate json filesdatetime
- For time log handlingcalendar
- For unix time handling
pip install -r requirements. txt
This repository is licensed under the Unlicense license.
See LICENSE for details.