This commit is contained in:
Kfir Dayan 2023-03-28 17:37:15 +03:00
parent cc5ab4227a
commit 0b0a5efe5c

View file

@ -34,9 +34,14 @@ 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);
fs.writeFileSync('output.ics', icsEvents);
console.info("NEW ICS EVENTS GENERATED!" )
fs.writeFileSync(outputFileLocation, icsEvents);
console.log("ICS FILE GENERATED In: " + outputFileLocation)
}