diff --git a/src/index.ts b/src/index.ts index b1a1df8..7bf1c8a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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) }