From ae3384bd71b94a7d6f39f8191ce4a5fb2b4a60d6 Mon Sep 17 00:00:00 2001 From: chiko Date: Fri, 9 Oct 2026 01:40:43 +0200 Subject: [PATCH] Added a Notificatio n15 min before the Calender Event --- src/index.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/index.ts b/src/index.ts index 1b3cd12..50aa6e9 100644 --- a/src/index.ts +++ b/src/index.ts @@ -37,6 +37,15 @@ function toIcsEvent(event: StoredCalendarEvent): string { `DESCRIPTION:${escapeIcs(formatEventDetails(event).join('\n'))}`, ...(event.location ? [`LOCATION:${escapeIcs(event.location)}`] : []), ...(event.url ? [`URL:${escapeIcs(event.url)}`] : []), + ...(event.status === 'confirmed' + ? [ + 'BEGIN:VALARM', + 'ACTION:DISPLAY', + 'DESCRIPTION:Notification', + 'TRIGGER:-PT15M', + 'END:VALARM', + ] + : []), 'END:VEVENT', ].join('\r\n'); }