Add winterfest for 11.31

This commit is contained in:
Lawin0129
2021-11-28 00:02:24 +00:00
committed by GitHub
parent 5782a77ac7
commit 9f4afdacae

View File

@@ -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({ res.json({
"channels": { "channels": {
"client-matchmaking": { "client-matchmaking": {
@@ -5927,4 +5952,4 @@ function makeid() {
let ID = crypto.createHash('md5').update(CurrentDate + RandomFloat).digest('hex'); 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); let FinishedID = ID.slice(0, 8) + "-" + ID.slice(8, 12) + "-" + ID.slice(12, 16) + "-" + ID.slice(16, 20) + "-" + ID.slice(20, 32);
return FinishedID; return FinishedID;
} }