From e05173091df0e4be1b6ad0295c74c5179e59b407 Mon Sep 17 00:00:00 2001 From: Kozejin <2613841+dkoz@users.noreply.github.com> Date: Sat, 20 Jul 2024 11:55:12 -0400 Subject: [PATCH] Economy Fixes --- cogs/economy/manage.py | 5 +---- cogs/economy/vote.py | 4 ++++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cogs/economy/manage.py b/cogs/economy/manage.py index 3c0c8b1..27b2441 100644 --- a/cogs/economy/manage.py +++ b/cogs/economy/manage.py @@ -91,13 +91,10 @@ async def force_steam( interaction: nextcord.Interaction, user: nextcord.Member = nextcord.SlashOption(description="Select the user"), steam_id: str = nextcord.SlashOption(description="Enter the user's Steam ID"), - verification_code: str = nextcord.SlashOption( - description="Enter the verification code" - ), ): user_id = str(user.id) user_name = user.display_name - await link_steam_account(user_id, steam_id, verification_code) + await link_steam_account(user_id, steam_id) await update_discord_username(user_id, user_name) diff --git a/cogs/economy/vote.py b/cogs/economy/vote.py index a098e46..075fcf7 100644 --- a/cogs/economy/vote.py +++ b/cogs/economy/vote.py @@ -57,6 +57,8 @@ async def votereward(self, interaction: nextcord.Interaction): await self.claim_reward(steam_id) add_points(user_id, interaction.user.display_name, self.vote_reward) await interaction.response.send_message(f"Thank you for voting! Your reward of {self.vote_reward} {self.currency} has been claimed.", ephemeral=True) + elif vote_status == "2": + await interaction.response.send_message("You have already claimed your reward.", ephemeral=True) else: await interaction.response.send_message("You either haven't voted in the last 12 hours or already claimed your reward.", ephemeral=True) @@ -81,6 +83,8 @@ async def claim_kit(self, interaction: nextcord.Interaction, kit_name: str = nex await interaction.response.send_message(f"Thank you for voting! {kit_name} kit has been claimed.", ephemeral=True) else: await interaction.response.send_message("Invalid kit selected.", ephemeral=True) + elif vote_status == "2": + await interaction.response.send_message("You have already claimed your reward.", ephemeral=True) else: await interaction.response.send_message("You either haven't voted in the last 12 hours or already claimed your reward.", ephemeral=True) except nextcord.errors.NotFound: