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
Built Distribution
File details
Details for the file DiscordEconomy-1.3.8.tar.gz
.
File metadata
- Download URL: DiscordEconomy-1.3.8.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5f28505e7ace151c1b76231ecb6bfd0a99cfb52154a1c21255c493e9b669672 |
|
MD5 | 76e75f22519eda6272b93b452ec8c7ca |
|
BLAKE2b-256 | 3718ce3dc677655a1af7b7e944c4376d868efbc60acb8e2e724214c4e13e33bc |
File details
Details for the file DiscordEconomy-1.3.8-py3-none-any.whl
.
File metadata
- Download URL: DiscordEconomy-1.3.8-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f32ead5b5969b06f8060519ec1923d9991f4555db5076b89db41fbc5a4c152cf |
|
MD5 | 9c10361fc11cc3398d125717226cec8e |
|
BLAKE2b-256 | f63929982265b5b99f222137e60ad9d3967c2962635df743a5d17eb79a0591fe |