I forgot people consider Sunday the start of the week
This commit is contained in:
parent
845953b708
commit
68ee9be768
2 changed files with 6 additions and 6 deletions
10
PFPs.json
10
PFPs.json
|
@ -1,5 +1,10 @@
|
||||||
{
|
{
|
||||||
"default": [
|
"default": [
|
||||||
|
{
|
||||||
|
"name": "Stocking",
|
||||||
|
"pfpRoot": "/pfps/Stocking",
|
||||||
|
"pfps": ["Stocking.webp"]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "Misery",
|
"name": "Misery",
|
||||||
"pfpRoot": "/pfps/Misery",
|
"pfpRoot": "/pfps/Misery",
|
||||||
|
@ -24,11 +29,6 @@
|
||||||
"name": "Ceoreparque",
|
"name": "Ceoreparque",
|
||||||
"pfpRoot": "/pfps/Ceoreparque",
|
"pfpRoot": "/pfps/Ceoreparque",
|
||||||
"pfps": ["Ceor.png", "Floof.png", "Ingame.png"]
|
"pfps": ["Ceor.png", "Floof.png", "Ingame.png"]
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Stocking",
|
|
||||||
"pfpRoot": "/pfps/Stocking",
|
|
||||||
"pfps": ["Stocking.webp"]
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"christmas": [
|
"christmas": [
|
||||||
|
|
2
index.js
2
index.js
|
@ -33,7 +33,7 @@ app.get("/v1/pfp", (req, res) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
var pfpConfig = JSON.parse(fs.readFileSync(path.join(__dirname, "PFPs.json")))[pfpSeason]
|
var pfpConfig = JSON.parse(fs.readFileSync(path.join(__dirname, "PFPs.json")))[pfpSeason]
|
||||||
var characterNumb = (time.getDay() - 1) % pfpConfig.length
|
var characterNumb = (time.getDay()) % pfpConfig.length
|
||||||
var char = pfpConfig[characterNumb]
|
var char = pfpConfig[characterNumb]
|
||||||
var pfps = char.pfps
|
var pfps = char.pfps
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue