mirror of
https://github.com/Lawin0129/LawinServer.git
synced 2026-01-13 10:52:23 +01:00
Add winterfest for 11.31
This commit is contained in:
27
index.js
27
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({
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user