Fix randomization, added 2 workouts

This commit is contained in:
2026-02-12 20:34:25 -06:00
parent b4ff9710a8
commit c32bb377c6
3 changed files with 7 additions and 1 deletions

View File

@@ -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"