From a5da3341b92a95c01350130c20dfa9e6861b6075 Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Thu, 8 Sep 2022 17:33:58 +0000 Subject: [PATCH] Fix changes in ics 0.8 --- divent/bot.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/divent/bot.py b/divent/bot.py index 070a16d..03726b7 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -119,12 +119,10 @@ async def ical(guild_id: str): for scheduled_event in guild.scheduled_events: event = Event() - event.name = scheduled_event.name + event.summary = scheduled_event.name event.begin = scheduled_event.scheduled_start_time - event.end = ( - scheduled_event.scheduled_end_time - or scheduled_event.scheduled_start_time + timedelta(hours=2) - ) + event.end = scheduled_event.scheduled_end_time + event.duration = timedelta(hours=2) event.uid = str(scheduled_event.id) event.description = scheduled_event.description event.url = f"https://discord.com/events/{guild_id}/{scheduled_event.id}"