Skip to content

Commit

Permalink
Economy Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoz committed Jul 20, 2024
1 parent d7ed722 commit e051730
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions cogs/economy/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 4 additions & 0 deletions cogs/economy/vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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:
Expand Down

0 comments on commit e051730

Please sign in to comment.