-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit adds support for parsing ICS calendars using the ICal standard format in addition to the existing Google Calendar API. The new commit also contains a hard-coded array of ICS calendar links, currently only containing ics.acmcsuf.com. In the future, more links may be added to this. A hard-coded array was chosen over an environment variable because environment variables cannot express arrays as easily. That said, if there are any private calendars, then they can be used as such: const KnownCalendars = [ "public1.ics", "public2.ics", SECRET_ICS_X, SECRET_ICS_Y, ] In the future, if ics.acmcsuf.com is proven to work well enough, the Google Calendar API could even be completely phased out. NOTE: It is worth pointing out that this ICS code currently *does not support recurring events*. This is because ics.acmcsuf.com doesn't do recurring events.
- Loading branch information
1 parent
1055182
commit 0b6c8ab
Showing
7 changed files
with
405 additions
and
16 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const knownICS = ['https://ics.acmcsuf.com/guilds/710225099923521558/events.ics']; | ||
export default knownICS; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.