Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support of Sqlite/MongoDB.
Project description
DiscordEconomy 1.3.8
Discord.py, other libs(hikari etc.), and forks(pycord, nextcord etc.) extension to create economy easily with support of Sqlite/MongoDB.
Release Information
Release 1.3.8
- fixed typing for get_all_data function
Release 1.3.7
- added full typing for functions
Release 1.3.6
- deprecated DiscordEconomy.Economy(), use 'from DiscordEconomy.Sqlite import Economy' instead
- added support for mongodb
Release 1.3.5
- code rewrite
- add some more examples(including new discord.py slash commands, and adding a new minigame)
Release 1.3.4
- added checking for the latest version
- code rewrite
Release 1.3.3
- Added simple documentation
Important Links
Installation
You can install package directly from pypi
pip install DiscordEconomy
Functions available
The current list of asynchronous functions available are:
await <economy>.is_registered(user_id)
await <economy>.get_user(user_id)
await <economy>.delete_user_account(user_id)
await <economy>.get_all_data()
await <economy>.add_money(user_id, value, amount)
await <economy>.remove_money(user_id, value, amount)
await <economy>.set_money(user_id, value, amount)
await <economy>.add_item(user_id, item)
await <economy>.remove_item(user_id, item)
Example Usage
All the examples for this package are available on GitHub
Note that for using this examples you have to change token to yours and:
- enable message and member intent in discord developer portal while using message commands example
- enable member intent in discord developer portal and pass guild id where to register slash commands while using slash commands example
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
DiscordEconomy-1.3.8.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for DiscordEconomy-1.3.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32ead5b5969b06f8060519ec1923d9991f4555db5076b89db41fbc5a4c152cf |
|
MD5 | 9c10361fc11cc3398d125717226cec8e |
|
BLAKE2b-256 | f63929982265b5b99f222137e60ad9d3967c2962635df743a5d17eb79a0591fe |