Spaces:
Paused
Paused
Update cash.py
Browse files
cash.py
CHANGED
|
@@ -3,7 +3,7 @@ from discord import app_commands
|
|
| 3 |
|
| 4 |
user_cash = {}
|
| 5 |
|
| 6 |
-
@app_commands.command(name="cash", description="
|
| 7 |
async def cash(interaction: discord.Interaction):
|
| 8 |
user_id = interaction.user.id
|
| 9 |
balance = user_cash.get(user_id, 0)
|
|
@@ -11,11 +11,11 @@ async def cash(interaction: discord.Interaction):
|
|
| 11 |
if balance == 0:
|
| 12 |
user_cash[user_id] = 100
|
| 13 |
balance = 100
|
| 14 |
-
message = "
|
| 15 |
else:
|
| 16 |
message = f"Your current balance is ${balance:.2f}"
|
| 17 |
|
| 18 |
embed = discord.Embed(title="Cash Balance", description=message, color=0x787878)
|
| 19 |
-
embed.set_footer(text="Use /dice to bet your cash!")
|
| 20 |
|
| 21 |
await interaction.response.send_message(embed=embed)
|
|
|
|
| 3 |
|
| 4 |
user_cash = {}
|
| 5 |
|
| 6 |
+
@app_commands.command(name="cash", description="check the current cash u got")
|
| 7 |
async def cash(interaction: discord.Interaction):
|
| 8 |
user_id = interaction.user.id
|
| 9 |
balance = user_cash.get(user_id, 0)
|
|
|
|
| 11 |
if balance == 0:
|
| 12 |
user_cash[user_id] = 100
|
| 13 |
balance = 100
|
| 14 |
+
message = "you are too poor so here is $100 free"
|
| 15 |
else:
|
| 16 |
message = f"Your current balance is ${balance:.2f}"
|
| 17 |
|
| 18 |
embed = discord.Embed(title="Cash Balance", description=message, color=0x787878)
|
| 19 |
+
embed.set_footer(text="Use /dice to bet your cash or use pet roll to get more cash!")
|
| 20 |
|
| 21 |
await interaction.response.send_message(embed=embed)
|