Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mason-dino/disecon
A Python Library to help make a simple economy system. This library is mostly used as a discord python library but could be used for another project.
https://github.com/mason-dino/disecon
Last synced: about 2 months ago
JSON representation
A Python Library to help make a simple economy system. This library is mostly used as a discord python library but could be used for another project.
- Host: GitHub
- URL: https://github.com/mason-dino/disecon
- Owner: Mason-Dino
- License: mit
- Created: 2021-09-25T01:34:59.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-09T00:42:06.000Z (5 months ago)
- Last Synced: 2024-08-09T02:11:56.489Z (5 months ago)
- Language: Python
- Homepage: https://pypi.org/project/Disecon/
- Size: 52.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.txt
- License: LICENSE
Awesome Lists containing this project
README
# Disecon
![PyPI](https://img.shields.io/pypi/v/Disecon?color=gree) ![PyPI - License](https://img.shields.io/pypi/l/Disecon?color=gree)
#
Disecon is a python economy library where you could make a full economy system really easy.
## Installing
```
# Windowspip 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.
```python
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.
```python
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.
```python
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.
```python
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.
```python
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.
```python
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.
```python
from Disecon import *top = results.top(place=1)
print(top.user_ID())
print(top.net())
print(top.wallet())
print(top.bank())
```