Skip to main content

Downloads

Discord-Economy

‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ Makes Economy much easier

discord_economy.Client(db='discord_economy', db_cluster='Economy', mongo_database='localhost:27017')

Example

import discord, discord_economy, random
from discord.ext.commands import Bot

eco_discord = discord_economy.Client()
bot = Bot(command_prefix='e!')

@bot.event
async def on_ready(): 
     print(f'{bot.user.name} is online | e!help')
 
 @bot.command()
 async def work(self, ctx):
    amount = random.randint(1, 50)
    eco_discord.work(amount, ctx.author.id)
    await ctx.send(f'You worked and gained ${amount}')
    
## Functions
discord_economy.Client().work(amount, user_id) # Gain more money
discord_economy.Client().deposit(amount, user_id) # deposit the money to the bank
discord_economy.Client().withdraw(amount, user_id) # withdraw the money from the bank
discord_economy.Client().get_cash(user_id) #Gets the user cash value
discord_economy.Client().get_bank(amount, user_id) #Gets the user bank value
discord_economy.Client().get_network(amount, user_id) # Cash + Bank = Network
discord_economy.Client().get_user_data(user_id) #Returns the user data 
discord_economy.Client().get_mongo_data() #Returns mongo data

Since discord.py is not in development anymore, This module will be using pycord. Please uninstall discord.py and install py-cord :)

Discord Server

Metadata

Release files for discord-economy 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for discord-economy 0.0.2
File Size Uploaded Provenance Actions
discord-economy-0.0.2.tar.gz 2.7 kB Without provenance Details for discord-economy-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for discord-economy 0.0.2
File Interpreter ABI Platform Actions
discord_economy-0.0.2-py3-none-any.whl Python 3 none any Details for discord_economy-0.0.2-py3-none-any.whl

Total release size: 5.7 kB

Release files / discord-economy-0.0.2.tar.gz

Download URL discord-economy-0.0.2.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
068934a14b8cd5b12a5debb5486c250567cc1adb2a7251b0de8cce64e605888e
BLAKE2b-256 checksum
How to use checksums
1befcc5ebbaecba2c0789593f724af67744a05066962beef080a85e8a7d61d57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.10

Release files / discord_economy-0.0.2-py3-none-any.whl

Download URL discord_economy-0.0.2-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac411c1b9da3edf14a2bbbde95ac3c72663ad3d21411aae6c00d813a7c973adb
BLAKE2b-256 checksum
How to use checksums
2cb2d9b0b0c93743d1f1b78f79102530deea283adedf7251a37b3b210c03083d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.8.10

Security for discord-economy 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page