Skip to content

Commit 2228f23

Browse files
authored
Merge pull request #10 from notsniped/currencyframework-update-7
Add `scout` command
2 parents 53719d4 + cdca5b7 commit 2228f23

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)