Fix randomization, added 2 workouts
This commit is contained in:
@@ -246,7 +246,7 @@ def register(tree: app_commands.CommandTree):
|
||||
@tree.command(name="workout", description="Get a random workout")
|
||||
async def workout(interaction: discord.Interaction):
|
||||
enabled = [w for w, v in WORKOUTS.items() if v > 0]
|
||||
choice = random.choice(enabled)
|
||||
choice = random.SystemRandom().choice(enabled)
|
||||
|
||||
await interaction.response.send_message(
|
||||
f"💪 **{choice}**\n"
|
||||
|
||||
Reference in New Issue
Block a user