Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
makayla-moster committed Sep 8, 2023
1 parent 06e9164 commit bc09eed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cog_modules/taunts/cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,15 @@ async def printdict(self, ctx: commands.Context):
print(serverResources)

@commands.command(name="38")
@commands.cooldown(1, 30, commands.BucketType.user)
async def no_38(self, ctx: commands.Context):
user = str(ctx.message.author.name)
res = random.choice(["Wood", "Food", "Gold", "Stone"])
num = random.randint(-1000, 1000)
response = f'Sent to "{ctx.message.author.display_name}": {num} {res}'
if user in serverResources:
serverResources[user][res] = str(num)
currentRes = serverResources[user][res]
serverResources[user][res] = str(int(currentRes) + int(num))
else:
serverResources[user] = {"Food": "0", "Wood": "0", "Gold": "0", "Stone": "0"}
serverResources[user][res] = str(num)
Expand Down

0 comments on commit bc09eed

Please sign in to comment.