Compare commits

..

No commits in common. "0b0a5efe5c00be93e4591634d9c7bf29f5cf5067" and "67babeac1555b1a9e1aaf00d1cfee23ca3b859f5" have entirely different histories.

2 changed files with 3 additions and 8 deletions

View file

@ -1,7 +1,7 @@
import { GoogleCalendarEvent } from "./types";
import * as ics from 'ics';
const uuid = require('uuid').v4();
const uuid = require('uuid').v4;
export default class Ics {
@ -34,7 +34,7 @@ export default class Ics {
alarms: [],
categories: [],
organizer: { name: 'Maccabi Haifa F.C.', email: '' },
uid: uuid.toString(),
uid: uuid
};
const { error, value } = ics.createEvent(icsEvent);

View file

@ -34,14 +34,9 @@ class App {
const app = new App();
const start = async () => {
const outputFileLocation = 'maccabi-haifa-fc.ics';
console.info("START APP!")
const games = await app.gameSource.getGamesFromHaifa();
console.info("NEW GAMES FOUND!")
const icsEvents = app.ics.generateIcsOutputFromGames(games);
console.info("NEW ICS EVENTS GENERATED!" )
fs.writeFileSync(outputFileLocation, icsEvents);
console.log("ICS FILE GENERATED In: " + outputFileLocation)
console.log(icsEvents)
}