Skip to content

Commit

Permalink
Tweak formula
Browse files Browse the repository at this point in the history
  • Loading branch information
atomflunder committed Sep 29, 2024
1 parent 74a7e03 commit 6451800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cogs/funcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,12 @@ async def parzcoin(self, ctx: commands.Context) -> None:
self.parz_coin_value = 0.000_000_000_012

direction = random.choice(["UP 📈", "DOWN 📉"])
percent = random.randint(1, 100)

if direction == "UP 📈":
percent = random.randint(1, 150)
self.parz_coin_value = self.parz_coin_value * (1 + (percent / 100))
else:
percent = random.randint(1, 100)
self.parz_coin_value = self.parz_coin_value * (1 - (percent / 100))

await ctx.send(
Expand Down

0 comments on commit 6451800

Please sign in to comment.