Days are more accurate now
This commit is contained in:
parent
b5bdbc9eef
commit
bcbbd6939f
1 changed files with 1 additions and 1 deletions
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() % pfpConfig.length
|
var characterNumb = (time.getDay() - 1) % pfpConfig.length
|
||||||
var char = pfpConfig[characterNumb]
|
var char = pfpConfig[characterNumb]
|
||||||
var pfps = char.pfps
|
var pfps = char.pfps
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue