Update birthday.py

This commit is contained in:
pacnpal
2024-12-10 19:17:50 -05:00
committed by GitHub
parent 52897a1f70
commit 4fa93d4472

View File

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