From b713deadc76c29a4ab8487e71aa333aab8ca02c0 Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 9 Sep 2024 14:53:42 +0530 Subject: [PATCH] smol changes --- Bot/cogs/Games.py | 8 ++++++-- requirements.txt | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Bot/cogs/Games.py b/Bot/cogs/Games.py index c7a4ef8..6500f45 100644 --- a/Bot/cogs/Games.py +++ b/Bot/cogs/Games.py @@ -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...") diff --git a/requirements.txt b/requirements.txt index c80cbc2..a94d97b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,5 +6,4 @@ nest_asyncio yt-dlp pynacl pyfiglet -termcolor -google-generativeai \ No newline at end of file +termcolor \ No newline at end of file