Disecon
Project description
Disecon
Disecon is a python economy library where you could make a full economy system really easy.
Installing
# Windows
pip install Disecon
# Lunix / Mac
python3 -m pip install Disecon
Usage
Starting Disecon
To start Disecon you need to do the following command bellow so that the database gets made. After you do the command you can delete the line that the command is on.
from Disecon import *
start()
Adding money
If you want to add some money into someones wallet you can follow the example bellow to add some money.
from Disecon import *
wallet = money.wallet(amount=100, user_ID=Discord User ID)
wallet.add()
If you want to add some money into someones bank you can follow the example bellow to add some money.
from Disecon import *
bank = money.bank(amount=100, user_ID=Discord User ID)
bank.add()
Subtracting money
If you want to subtract money from someones wallet do the following example below.
from Disecon import *
wallet = money.wallet(amount=100, user_ID=Disecon User ID)
wallet.sub()
If you want to subtract money from someones bank you could follow the example below.
from Disecon import *
bank = money.bank(amount=100, user_ID=Discord User ID)
bank.sub()
Viewing User Info
If you want to view someones wallet, bank or net follow the example below.
from Disecon import *
view = results.view(user_ID=Discord User ID)
print(view.wallet())
print(view.bank())
print(view.net())
Leaderboard Info
If you want to see who's in a certain place and git user id, net, wallet and bank you can follow the example below.
from Disecon import *
top = results.top(place=1)
print(top.user_ID())
print(top.net())
print(top.wallet())
print(top.bank())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file Disecon-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: Disecon-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e306fbb954eca55df0733f19e355b88d35404baef8102d6bc8d813024c146ab |
|
MD5 | c4a0631ff074fdc843078d1daaba9117 |
|
BLAKE2b-256 | 33b47a97406004331b5940c2fb0e14bf67ee2fdc6d80e3b3e660f1f6f069d055 |