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: