Correct raid time.
build_develop / build (push) Successful in 21s

This commit is contained in:
2025-03-19 19:36:21 -04:00
parent 661c864ba2
commit d5e6ffdedb
+7 -1
View File
@@ -134,7 +134,13 @@ def build_raid_embed() -> nextcord.Embed:
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.add_field(name="Tanks", value="", inline=False)
embed.add_field(name="Healers", value="", inline=False)