Skip to content

Commit

Permalink
Add logging of admin actions
Browse files Browse the repository at this point in the history
  • Loading branch information
flaree committed Feb 19, 2025
1 parent 0893695 commit 0551d84
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions ballsdex/packages/admin/money.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ class Money(app_commands.Group):
"""

@app_commands.command()
async def balance(
self,
interaction: discord.Interaction[BallsDexBot],
user: discord.User
):
async def balance(self, interaction: discord.Interaction[BallsDexBot], user: discord.User):
"""
Show the balance of the user provided
Expand All @@ -40,10 +36,7 @@ async def balance(

@app_commands.command()
async def add(
self,
interaction: discord.Interaction[BallsDexBot],
user: discord.User,
amount: int
self, interaction: discord.Interaction[BallsDexBot], user: discord.User, amount: int
):
"""
Add coins to the user provided
Expand Down Expand Up @@ -76,10 +69,7 @@ async def add(

@app_commands.command()
async def remove(
self,
interaction: discord.Interaction[BallsDexBot],
user: discord.User,
amount: int
self, interaction: discord.Interaction[BallsDexBot], user: discord.User, amount: int
):
"""
Remove coins from the user provided
Expand Down Expand Up @@ -116,10 +106,7 @@ async def remove(

@app_commands.command()
async def set(
self,
interaction: discord.Interaction[BallsDexBot],
user: discord.User,
amount: int
self, interaction: discord.Interaction[BallsDexBot], user: discord.User, amount: int
):
"""
Set the balance of the user provided
Expand Down Expand Up @@ -149,4 +136,4 @@ async def set(
await player.save()
await interaction.followup.send(
f"{user.mention} now has {amount:,} coins.", ephemeral=True
)
)

0 comments on commit 0551d84

Please sign in to comment.