Fixed math in coinflip()

This commit is contained in:
rkh00 authored and GitHub committed 2024-09-24 14:48:47 +02:00
1 parent d7eef17ed3
commit a03ea4bba6
1 file changed
+2 -2
+2 -2
View File
@@ -324,9 +324,9 @@ class Misc(commands.Cog):
"""
random_result = random.randint(1, 100) # We use 1 and not 0 to avoid a tie
if random_result >= 50: # And by including 50 we avoid that tie
if random_result > 50: # And by including 50 we avoid that tie
outcome = "Kron"
elif random_result < 50:
elif random_result <= 50:
outcome = "Mynt"
await interaction.response.send_message(outcome)