diff --git a/index.js b/index.js index 0b9d954..4d17f6b 100644 --- a/index.js +++ b/index.js @@ -1080,6 +1080,31 @@ express.get("/fortnite/api/calendar/v1/timeline", async (req, res) => { }) } + // Credits to Silas for three of these event flags and credits to uni for testing on 11.31 + if (req.headers["user-agent"].includes("Release-11.31")) { + activeEvents.push( + { + "eventType": "EventFlag.Winterfest.Tree", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.LTE_WinterFest", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Phoenix.Winterfest", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }, + { + "eventType": "EventFlag.Season11.Frostnite", + "activeUntil": "9999-01-01T00:00:00.000Z", + "activeSince": "2020-01-01T00:00:00.000Z" + }) + } + res.json({ "channels": { "client-matchmaking": { @@ -5927,4 +5952,4 @@ function makeid() { let ID = crypto.createHash('md5').update(CurrentDate + RandomFloat).digest('hex'); let FinishedID = ID.slice(0, 8) + "-" + ID.slice(8, 12) + "-" + ID.slice(12, 16) + "-" + ID.slice(16, 20) + "-" + ID.slice(20, 32); return FinishedID; -} \ No newline at end of file +}