1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 22:23:13 +00:00
Lumi/modules/admin/award.py
2024-03-29 13:17:51 -04:00

17 lines
392 B
Python

import discord
from services.Currency import Currency
async def cmd(ctx, user: discord.User, amount: int):
# Currency handler
curr = Currency(user.id)
curr.add_balance(amount)
curr.push()
embed = discord.Embed(
color=discord.Color.green(),
description=f"Awarded **${Currency.format(amount)}** to {user.name}."
)
await ctx.respond(embed=embed)