diff --git a/off_cooldown_bot/open_raid.py b/off_cooldown_bot/open_raid.py index 6a51832..d41fa54 100644 --- a/off_cooldown_bot/open_raid.py +++ b/off_cooldown_bot/open_raid.py @@ -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)