coollsd commited on
Commit
fcbb861
·
verified ·
1 Parent(s): f49df4b

Update shop.py

Browse files
Files changed (1) hide show
  1. shop.py +20 -5
shop.py CHANGED
@@ -8,19 +8,34 @@ from cash import user_cash
8
  async def shop(interaction: discord.Interaction, item: str = None):
9
  user_id = interaction.user.id
10
  balance = user_cash.get(user_id, 0)
 
11
 
12
  if item is None:
13
- embed = discord.Embed(title="Shop", description="items-", color=0x787878)
14
  embed.add_field(name="@everyone / ping", value="Price: $300,000,000", inline=False)
15
- embed.set_footer(text="Use /shop @everyone to purchase")
 
 
16
  await interaction.response.send_message(embed=embed)
17
  elif item.lower() == "@everyone":
18
  if balance >= 300000000:
19
  user_cash[user_id] -= 300000000
20
- await interaction.response.send_message("Item bought @everyone ping will be sent in 2 seconds.")
21
  await asyncio.sleep(2)
22
  await interaction.channel.send("@everyone")
23
  else:
24
- await interaction.response.send_message("You don't have enough money to purchase this poor ass.")
 
 
 
 
 
 
 
 
 
 
 
 
25
  else:
26
- await interaction.response.send_message("Invalid item. Use /shop to see available items.")
 
8
  async def shop(interaction: discord.Interaction, item: str = None):
9
  user_id = interaction.user.id
10
  balance = user_cash.get(user_id, 0)
11
+ robux_code_available = True #
12
 
13
  if item is None:
14
+ embed = discord.Embed(title="Shop", description="Items:", color=0x787878)
15
  embed.add_field(name="@everyone / ping", value="Price: $300,000,000", inline=False)
16
+ if robux_code_available:
17
+ embed.add_field(name="100 Robux Code", value="Price: $999,000,000", inline=False)
18
+ embed.set_footer(text="Use /shop <item> to purchase")
19
  await interaction.response.send_message(embed=embed)
20
  elif item.lower() == "@everyone":
21
  if balance >= 300000000:
22
  user_cash[user_id] -= 300000000
23
+ await interaction.response.send_message("Item bought. @everyone ping will be sent in 2 seconds.")
24
  await asyncio.sleep(2)
25
  await interaction.channel.send("@everyone")
26
  else:
27
+ await interaction.response.send_message("you got no money poor.")
28
+ elif item == "100":
29
+ if robux_code_available:
30
+ if balance >= 999000000:
31
+ user_cash[user_id] -= 999000000
32
+ code = "TD4XD-QHR5A-QMNYG"
33
+ await interaction.user.send(f"Here's your 100 Robux code: {code}")
34
+ await interaction.response.send_message("Code sent to your DMs.")
35
+ robux_code_available = False # Mark the code as redeemed
36
+ else:
37
+ await interaction.response.send_message("You don't have enough money to purchase this.")
38
+ else:
39
+ await interaction.response.send_message("This item is no longer available too late fool.")
40
  else:
41
+ await interaction.response.send_message(" Use /shop to see items.")