mirror of
https://github.com/wlinator/luminara.git
synced 2024-10-03 00:23:13 +00:00
17 lines
401 B
Python
17 lines
401 B
Python
import discord
|
|
|
|
from services.currency_service 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)
|