mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
Fixed math in coinflip()
This commit is contained in:
1 parent
d7eef17ed3
commit
a03ea4bba6
1 file changed
+2
-2
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user