mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
Update birthday.py
This commit is contained in:
@@ -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)
|
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)
|
# Generate birthday message with random cakes (or pie)
|
||||||
cakes = secrets.SystemRandom().randint(0, 5)
|
cakes = secrets.randbelow(6)
|
||||||
if cakes == 0:
|
if cakes == 0:
|
||||||
message = f"🎉 Happy Birthday, {member.mention}! Sorry, out of cake today! Here's pie instead: 🥧"
|
message = f"🎉 Happy Birthday, {member.mention}! Sorry, out of cake today! Here's pie instead: 🥧"
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user