Do not ping a user on their cakeday.
build_release / build (push) Successful in 17s
build_latest / build (push) Successful in 1m45s

This commit is contained in:
2025-02-04 22:49:53 -05:00
parent 667a600ec6
commit d56251c0b9
2 changed files with 9 additions and 1 deletions
+2
View File
@@ -3,6 +3,8 @@
"aiofiles",
"autofilled",
"blurple",
"CAKEDAY",
"cakedays",
"CLANLEADER",
"Dakiny",
"DISCORDMANAGER",
+7 -1
View File
@@ -20,6 +20,8 @@ if TYPE_CHECKING:
KANDY = 239547993106284544
IGNORE_CAKEDAY = [266378407682506754]
class DailyLoop(commands.Cog, name="Daily Loop"):
"""Class for performing daily functions."""
@@ -112,7 +114,11 @@ class DailyLoop(commands.Cog, name="Daily Loop"):
announce_channel: nextcord.TextChannel = guild.get_channel(settings.channel_ids.general)
cakedays: list[nextcord.Member] = [
human for human in guild.humans if human.joined_at.month == today.month and human.joined_at.day == today.day
human
for human in guild.humans
if human.joined_at.month == today.month
and human.joined_at.day == today.day
and human.id not in IGNORE_CAKEDAY
]
for member in cakedays: