Esempio n. 1
0
async def balance(context: commands.Context):
    user = store.register_user(context.message.author.id)
    wallet = store.get_user_wallet(user.user_id)
    await bot.send_message(
        context.message.author, '**[💰 YOUR BALANCE]**\n\n'
        f'💰 Available: {wallet.actual_balance / COIN_DIGITS:.4f} '
        f'{COIN_REPR}\n'
        f'👛 Pending: {wallet.locked_balance / COIN_DIGITS:.4f} '
        f'{COIN_REPR}\n')
Esempio n. 2
0
async def botbalance(context: commands.Context, member: discord.Member):
    if (member.bot == False):
        await bot.add_reaction(context.message, EMOJI_ERROR)
        await bot.send_message(
            context.message.author, 'Only for bot!!!')
    else:
        user = store.register_user(member.id)
        wallet = store.get_user_wallet(user.user_id)
        balance_actual = '{:,.4f}'.format(wallet.actual_balance / COIN_DIGITS)
        balance_locked = '{:,.4f}'.format(wallet.locked_balance / COIN_DIGITS)
        await bot.send_message(
            context.message.author, f'**[💰 INFO BOT {member.name}\'s BALANCE]**\n\n'
            f'👛 Deposit Address: `{user.balance_wallet_address}`\n'
            f'💰 Available: {balance_actual} '
            f'{COIN_REPR}\n'
            f'👛 Pending: {balance_locked} '
            f'{COIN_REPR}\n')