Last updated:
0 purchases
pyeconomy 0.1.26
py-economy
A simple to use economy module.
WARNING: This project is in alpha release and may be unstable and buggy.
Developers: Konrad (@konradsic)
Install
pip install pyeconomy
Links
PyPi - Python Package Index
How it works
It is very simple:
Everything is stored in .json files
Discord async functions works same as normal, but it returns an embed object that you can send.
Code example:
import pyeconomy as economy
instance = economy.Economy(discord_mode=False)
user = instance.get_user_by_id(id="1234567890") # enter user id here
if user is None:
print("User not found!")
else:
print(f"{user.name}'s balance: {user.wallet}")
This easy example will create an economy instance (economy.Economy) set discord mode to False.
Then it searches for a user with id 1234567890, checks if it exists and prints it's balance.
Please note, that its an pre-alpha relase and it does not support discord yet.
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.