Skip to content

Commit

Permalink
smol changes
Browse files Browse the repository at this point in the history
  • Loading branch information
m4-rk committed Sep 9, 2024
1 parent 83bca1e commit b713dea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 6 additions & 2 deletions Bot/cogs/Games.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,16 +173,20 @@ async def wait_for_response():

@app_commands.command(name='balance',description='Shows the points you earned from the games you won against the bot')
async def view_points_cmd(self, interactions:discord.Interaction,user:discord.Member =None):
BalanceEmbed = discord.Embed(title="Your wallet balance",colour=discord.Colour.random())
BalanceEmbed = discord.Embed(title="Wallet balance",colour=discord.Colour.random())
BalanceEmbed.set_thumbnail(url="https://media.tenor.com/QMfaVm3kNy0AAAAi/moneda-girando-spinning.gif")
if user is not None:
user_id = user.id
points = await find(user_id,1)
else:
user_id = interactions.user.id
user = interactions.user
points = await find(user_id,1)

if type(points) == str:
BalanceEmbed.description = f"{user.mention} hasnt participated in any games yet."
else:
BalanceEmbed.description = f"{user.mention}'s points ${points}"
BalanceEmbed.description = f"{user.mention}'s points {points}"
await interactions.response.send_message(embed=BalanceEmbed)

@app_commands.command(name="transfer",description="Transfer money to your friends, waifu, business partner too...")
Expand Down
3 changes: 1 addition & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ nest_asyncio
yt-dlp
pynacl
pyfiglet
termcolor
google-generativeai
termcolor

0 comments on commit b713dea

Please sign in to comment.