Skip to main content

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

Downloads PyPI - License Language grade: Python Total alerts

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


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)

Uploaded Source

Built Distribution

DiscordEconomy-1.3.8-py3-none-any.whl (8.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page