From 57856f541f3ff4195006b69b70ed82dab46df4e1 Mon Sep 17 00:00:00 2001 From: lunazeta <70282650+lunazeta@users.noreply.github.com> Date: Tue, 10 Mar 2026 23:48:13 +0000 Subject: [PATCH] If event is in the past, skip syncing the event: Discord doesn't allow adding events in the past. --- cogs/commands/event_sync.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cogs/commands/event_sync.py b/cogs/commands/event_sync.py index 6396cdb8..db7ae57e 100644 --- a/cogs/commands/event_sync.py +++ b/cogs/commands/event_sync.py @@ -50,6 +50,8 @@ async def event(self, ctx: Context, days: int = 7, logging: bool = False): # Add events for ev in events: + if datetime.fromisoformat(ev.get("start_time")) < datetime.now(LONDON): + continue await self.update_event(ctx, ev, links, dc_events) await ctx.send("Done :)")