Skip to content

Commit cdca5b7

Browse files
authored
Add scout command
A better version of `beg` command. You can gain 550 to 2000 coins every 30 seconds by scouting your area for cash.
1 parent 53719d4 commit cdca5b7

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

main.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,5 +336,19 @@ async def beg(ctx:SlashContext):
336336
else:
337337
await ctx.send(embed=discord.Embed(title='A random person', description='"lol no get a life"'))
338338

339+
@slash.slash(
340+
name='scout',
341+
description='Scout your area for coins'
342+
)
343+
async def scout(ctx:SlashContext):
344+
chance:int = random.randint(1, 100)
345+
if (chance <= 90):
346+
x:int = random.randint(550, 2000)
347+
currency[wallet][str(ctx.author.id)] += x
348+
save()
349+
await ctx.send(embed=discord.Embed(title='What you found', description=f'You searched your area and found {x} coins!'))
350+
else:
351+
await ctx.send(embed=discord.Embed(title='What you found', description='Unfortunately no coins for you :('))
352+
339353
# Initialization
340354
client.run(api.auth.token)

0 commit comments

Comments
 (0)