From 4fa93d4472492793074a7487bae5946965404828 Mon Sep 17 00:00:00 2001 From: pacnpal <183241239+pacnpal@users.noreply.github.com> Date: Tue, 10 Dec 2024 19:17:50 -0500 Subject: [PATCH] Update birthday.py --- birthday/birthday.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birthday/birthday.py b/birthday/birthday.py index 4102659..182824c 100644 --- a/birthday/birthday.py +++ b/birthday/birthday.py @@ -52,7 +52,7 @@ async def birthday_context_menu(interaction: discord.Interaction, member: discor return await interaction.followup.send("Failed to assign the birthday role due to a Discord error.", ephemeral=True) # Generate birthday message with random cakes (or pie) - cakes = secrets.SystemRandom().randint(0, 5) + cakes = secrets.randbelow(6) if cakes == 0: message = f"🎉 Happy Birthday, {member.mention}! Sorry, out of cake today! Here's pie instead: 🥧" else: