Skip to content

Commit

Permalink
add alarm
Browse files Browse the repository at this point in the history
  • Loading branch information
PeronGH committed Sep 7, 2022
1 parent a0a6453 commit 0ae7772
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ export type {
EventConfig,
Day,
RecurrenceRule,
} from 'https://deno.land/x/[email protected].10/mod.ts';
} from 'https://deno.land/x/[email protected].11/mod.ts';

export { Event, Calendar } from 'https://deno.land/x/[email protected]/mod.ts';
4 changes: 4 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ export function genCalendar(lessons: { [title: string]: Lesson }) {
desc,
duration,
rrule,
alarm: {
desc: `${title} will start in 30 minutes`,
advance: 30,
},
};

const evt = new Event(cfg);
Expand Down

0 comments on commit 0ae7772

Please sign in to comment.