Skip to content

Nohet/DiscordEconomy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Discord.py extension to create economy easily.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages