Spaces:
Paused
Paused
Update shop.py
Browse files
shop.py
CHANGED
|
@@ -6,7 +6,6 @@ from cash import user_cash
|
|
| 6 |
# Define the available codes for each item
|
| 7 |
robux_codes = ["TD4XD-QHR5A-QMNYG"]
|
| 8 |
steam_game_codes = [
|
| 9 |
-
"THEWB-46GWF-5QEJ3",
|
| 10 |
"6X5C2-FI9DW-8WF2E",
|
| 11 |
"7DEDH-09ZFZ-M2EVK",
|
| 12 |
"3NXYK-ZLGJ4-0B94A"
|
|
@@ -46,8 +45,8 @@ async def shop(interaction: discord.Interaction, item: str = None):
|
|
| 46 |
await interaction.response.send_message("This item is gone wait for a restock.")
|
| 47 |
elif item.lower() == "steam":
|
| 48 |
if steam_game_codes:
|
| 49 |
-
if balance >=
|
| 50 |
-
user_cash[user_id] -=
|
| 51 |
code = steam_game_codes.pop(0) # Redeem the first available code
|
| 52 |
await interaction.user.send(f"Here's your Steam game code: {code}")
|
| 53 |
await interaction.response.send_message("Code sent to your DMs.")
|
|
|
|
| 6 |
# Define the available codes for each item
|
| 7 |
robux_codes = ["TD4XD-QHR5A-QMNYG"]
|
| 8 |
steam_game_codes = [
|
|
|
|
| 9 |
"6X5C2-FI9DW-8WF2E",
|
| 10 |
"7DEDH-09ZFZ-M2EVK",
|
| 11 |
"3NXYK-ZLGJ4-0B94A"
|
|
|
|
| 45 |
await interaction.response.send_message("This item is gone wait for a restock.")
|
| 46 |
elif item.lower() == "steam":
|
| 47 |
if steam_game_codes:
|
| 48 |
+
if balance >= 1000000000:
|
| 49 |
+
user_cash[user_id] -= 1000000000
|
| 50 |
code = steam_game_codes.pop(0) # Redeem the first available code
|
| 51 |
await interaction.user.send(f"Here's your Steam game code: {code}")
|
| 52 |
await interaction.response.send_message("Code sent to your DMs.")
|