diff --git a/src/lfgHandlers.ts b/src/lfgHandlers.ts index 2384e55..8dd2eca 100644 --- a/src/lfgHandlers.ts +++ b/src/lfgHandlers.ts @@ -25,7 +25,7 @@ export const handleLFGStep = async (wipLFG: BuildingLFG, input: string): Promise }, { name: "Add to Calendar:", - value: "Coming Soon:tm:", + value: ". . .", inline: true }, { @@ -289,8 +289,12 @@ export const handleLFGStep = async (wipLFG: BuildingLFG, input: string): Promise lfgDate = `${lfgDate.split("/")[0]}/${lfgDate.split("/")[1]}`; const lfgDateStr = `[${lfgTime} ${lfgPeriod} ${lfgTZ} ${lfgDate}](https://groupup.eanm.dev/tz#${lfgDateTime.getTime()})`; + const icsDetails = `${currentLFG[0].name} ${currentLFG[0].value}`; + const icsStr = `[Download ICS File](https://groupup.eanm.dev/ics?t=${lfgDateTime.getTime()}&n=${icsDetails.replaceAll(" ", "+")})` + currentLFG[1].name = "Start Time (Click for Conversion):"; currentLFG[1].value = lfgDateStr.substr(0, 1023); + currentLFG[2].value = icsStr.substr(0, 1023); if (isNaN(lfgDateTime.getTime())) { nextQuestion = `Input time "${input}" (parsed as "${lfgTime} ${lfgPeriod} ${lfgTZ} ${lfgDate}") is invalid, please make sure you have the timezone set correctly.\n\n${lfgStepQuestions.set_time}`; diff --git a/www/icsGenerator/index.html b/www/icsGenerator/index.html new file mode 100644 index 0000000..8ce6c42 --- /dev/null +++ b/www/icsGenerator/index.html @@ -0,0 +1,102 @@ + + + + + + + + + + + + Group Up ICS Generator + + + + + + + + + + + + +
+

How to use this ICS:

+

+

Google Calendar:

+
    +
  1. Click on the gear in the top right
  2. +
  3. Click on Settings
  4. +
  5. Click on the Import & Export button
  6. +
  7. Upload the ICS you just downloaded (if you didn't save it, click the link again and save it)
  8. +
  9. Click Import
  10. +
  11. Done! You can now view the event in your calendar
  12. +
+

+

+

Microsoft Outlook:

+
    +
  1. Click on File
  2. +
  3. Click on Open & Export
  4. +
  5. Click on Import/Export
  6. +
  7. Select Import an iCalendar (.ics) or vCalendar file (.vcs)
  8. +
  9. Click Next
  10. +
  11. Locate the ICS you just downloaded (if you didn't save it, click the link again and save it)
  12. +
  13. Click Import
  14. +
  15. Done! You can now view the event in your calendar
  16. +
+

+
+ + + \ No newline at end of file diff --git a/www/tzConverter/index.html b/www/tzConverter/index.html index 36d117f..a9ab82a 100644 --- a/www/tzConverter/index.html +++ b/www/tzConverter/index.html @@ -10,8 +10,7 @@ Group Up Time Checker - - + @@ -20,8 +19,6 @@ - -