Connect your bot to Discord Wallet.
Project description
Welcome to Wallet!
Wallet is a project designed to connect Discord's economy bots. With a simple installation and set-up, any dev can add their bot to the Wallet economy!
Questions? Comments? Concerns? Join the Discord server!
https://discord.gg/aKGv9z2g8B
Getting Started
import wallet
# currency_symbol is optional, and can be added in any call to update the bot's symbol in Wallet (defaults to $)
wallet.add_to_wallet(bot_id, user_id, amount_of_currency, currency_symbol);
wallet.remove_from_wallet(bot_id, user_id, amount_of_currency, currency_symbol);
Wallet.check_balance(bot_id, user_id, currency_symbol);
Example
import discord
import wallet
from discord.ext import commands
bot = commands.Bot(command_prefix = '!')
@bot.command(name='wallet')
async def _wallet(ctx, type_input, amount_input):
if type_input == 'add':
wallet.add_to_wallet(bot.user.id, ctx.message.author.id, int(amount_input))
# remove the money from your database to match
Warning: Abuse of any of Wallet's features will have your bot banned. Think you've found an exploit? Let us know in the Discord server.
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
discord_wallet-0.3.tar.gz
(2.3 kB
view details)
File details
Details for the file discord_wallet-0.3.tar.gz.
File metadata
- Download URL: discord_wallet-0.3.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.5.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
818179c26a9b526842b68b72bdc9881697ae5cc34a5ff2699d5d4eaefbcb74cb
|
|
| MD5 |
95366e074339c2f12f896f0d805e1615
|
|
| BLAKE2b-256 |
e5eadbf492770a5d34f600a114268aa4919d61884f449d4764406948e2fbd9f2
|