Skip to main content

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


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 hashes)

Uploaded Source

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