A simple to use economy module
Project description
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==0.1.0
Version
Currently running on version 0.1.0
Links
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.balance}")
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.
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 Distribution
pyeconomy-0.1.0.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for pyeconomy-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea00df6eddcabb1de5372109578939a415c7153f6a95f5df3ff9a4f5f88e4acd |
|
MD5 | 2704c10a92b8303f8d0a079d53e9189b |
|
BLAKE2b-256 | 3198d622be562a138a5ccb73f53bd39b42d1423a0b51bc4c3734346f70752c3f |