I forgot people consider Sunday the start of the week

This commit is contained in:
bingus_violet 2024-06-14 00:37:17 -05:00
parent 845953b708
commit 68ee9be768
2 changed files with 6 additions and 6 deletions

View file

@ -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": [

View file

@ -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