mirror of
https://github.com/Sheldan/Sissi.git
synced 2026-01-01 23:35:21 +00:00
[SIS-20] adding feature to attach an ics file to meetups
can be toggled via feature mode
This commit is contained in:
@@ -49,6 +49,14 @@
|
||||
}
|
||||
</#if>
|
||||
],
|
||||
<#if meetupIcsModel.attachIcsFile>
|
||||
"files": [
|
||||
{
|
||||
"fileName": "<@safe_include "meetup_ics_file_name"/>.ics",
|
||||
"fileContent": "<@safe_include "meetup_ice_file_download"/>"
|
||||
}
|
||||
],
|
||||
</#if>
|
||||
"messageConfig": {
|
||||
"allowsRoleMention": true
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
BEGIN:VCALENDAR
|
||||
VERSION:2.0
|
||||
PRODID:Sissi-Bot
|
||||
BEGIN:VEVENT
|
||||
UID:sissi-meetup-${meetupId}
|
||||
DTSTAMP:${meetupIcsModel.icsFormattedCreationTime}
|
||||
DTSTART:${meetupIcsModel.icsFormattedStartTime}
|
||||
DTEND:${meetupIcsModel.icsFormattedEndTime}
|
||||
SUMMARY:${topic}
|
||||
<#if description?has_content>DESCRIPTION:${description}</#if>
|
||||
<#if location?? && location != "%22%22">LOCATION:${location}</#if>
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
Reference in New Issue
Block a user