From a599caa19e32e1f0bb55c854c0009536d652fe5d Mon Sep 17 00:00:00 2001 From: PRO100KatYT Date: Sat, 30 Oct 2021 10:21:53 +0200 Subject: [PATCH] More StW Event Flags Added Save the World Event Flags for season 6, 7, 8 and 9. --- index.js | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/index.js b/index.js index e053df6..84ce2c2 100644 --- a/index.js +++ b/index.js @@ -694,6 +694,73 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { }) } + if (seasondata.season == 6) { + activeEvents.push( + { + "eventType": "EventFlag.Fortnitemares", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.FortnitemaresPhase1", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.FortnitemaresPhase2", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } + + if (seasondata.season == 7) { + activeEvents.push( + { + "eventType": "EventFlag.Frostnite", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } + + if (seasondata.season == 8) { + activeEvents.push( + { + "eventType": "EventFlag.Spring2019", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Spring2019.Phase1", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Spring2019.Phase2", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } + + + if (seasondata.season == 9) { + activeEvents.push( + { + "eventType": "EventFlag.Season9", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Season9.Phase1", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Season9.Phase2", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } + res.json({ "channels": { "client-matchmaking": {