From 9f4afdacaeae1d455186f2490db90c686f940173 Mon Sep 17 00:00:00 2001 From: Lawin0129 <56766256+Lawin0129@users.noreply.github.com> Date: Sun, 28 Nov 2021 00:02:24 +0000 Subject: [PATCH] Add winterfest for 11.31 --- index.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) 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 +}