No more chrimus
This commit is contained in:
parent
19b043f787
commit
7b7a9e18d1
1 changed files with 3 additions and 3 deletions
6
index.js
6
index.js
|
@ -66,9 +66,9 @@ app.get("/v1/pfp", async (req, res) => {
|
||||||
res.setHeader("Content-Type", "image/png")
|
res.setHeader("Content-Type", "image/png")
|
||||||
|
|
||||||
var time = new Date(Date.now())
|
var time = new Date(Date.now())
|
||||||
if ([12].includes(time.getMonth() + 1)) {
|
// if ([12].includes(time.getMonth() + 1)) {
|
||||||
pfpSeason = "christmas"
|
// pfpSeason = "christmas"
|
||||||
}
|
// }
|
||||||
|
|
||||||
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()) % pfpConfig.length
|
||||||
|
|
Loading…
Reference in a new issue