Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.

Commit bad4138

Browse files
author
Benjamin O'Brien
committed
Fixed Rob Command
1 parent 72c8fe0 commit bad4138

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

commands/currency/rob.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ async def rob(self, ctx, user = None):
5959

6060
db[str(ctx.author.id)]["balance"] += earn
6161

62+
if (str(earn)) > 15:
63+
64+
earn = "∞"
65+
6266
embed = discord.Embed(title = "Nice :ok_hand:", description = f"You just robbed {user.name} and earned `{earn}` coins.", color = 0x126bf1)
6367

6468
else:
@@ -76,6 +80,8 @@ async def rob(self, ctx, user = None):
7680

7781
open("db/users", "w").write(dumps(db, indent = 4))
7882

83+
await ctx.send(embed = embed)
84+
7985
return await Cooldowns.set_cooldown(ctx, "rob", 3600)
8086

8187
# Link to bot

0 commit comments

Comments
 (0)