2 Commits
Author SHA1 Message Date
imcompiling d5e6ffdedb Correct raid time.
build_develop / build (push) Successful in 21s
2025-03-19 19:36:21 -04:00
imcompiling 661c864ba2 Edit a docustring. 2025-03-19 19:19:34 -04:00
+8 -2
View File
@@ -131,10 +131,16 @@ def build_raid_embed() -> nextcord.Embed:
Build the open raid embed. Build the open raid embed.
Returns: Returns:
nextcord.Embed: _description_ nextcord.Embed: Embed that shows the raid's sign-ups.
""" """
raid_time = datetime.datetime.now(tz=datetime.UTC) # TODO make this to the next saturday at 8pm CST today = datetime.datetime.now(tz=datetime.UTC).replace(hour=20)
saturday_idx = 5
days_delta = saturday_idx - today.weekday()
if days_delta < 0:
days_delta += 7
raid_time = today + datetime.timedelta(days_delta)
embed = nextcord.Embed(title="Off Cooldown Open Raid", timestamp=raid_time) embed = nextcord.Embed(title="Off Cooldown Open Raid", timestamp=raid_time)
embed.add_field(name="Tanks", value="", inline=False) embed.add_field(name="Tanks", value="", inline=False)
embed.add_field(name="Healers", value="", inline=False) embed.add_field(name="Healers", value="", inline=False)