From 7591f6e1fdfa1bd4d41ca711f5b420fcc67dc304 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sun, 19 May 2024 08:49:56 -0500 Subject: [PATCH] Add Basil back --- PFPs.json | 10 ++++++++++ index.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/PFPs.json b/PFPs.json index 4751bfd..e8a5cdf 100644 --- a/PFPs.json +++ b/PFPs.json @@ -9,6 +9,16 @@ "idle": ["Sad2.png", "Sad.png"], "fallback": "/pfps/OmoriPicrew/Dream/Neutral.png" } + }, + { + "name": "Basil", + "pfpRoot": "/pfps/Basil", + "pfps": { + "online": ["BasilHappy.webp", "BasilManic.webp", "BasilNeutral.webp", "BasilVictory.webp"], + "dnd": ["BasilAngry.webp", "BasilEnraged.webp", "BasilFurious.webp"], + "idle": ["BasilSad.webp", "BasilDepressed.webp", "BasilMiserable.webp"], + "fallback": "/pfps/Basil/BasilToast.webp" + } } ], "christmas": [ diff --git a/index.js b/index.js index 28257c2..a6f631f 100644 --- a/index.js +++ b/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 characterNumb = 0 // time.getDate() % pfpConfig.length + var characterNumb = time.getDate() % pfpConfig.length // Was originally meant to alternate, didn't really feel like it though. Might add back later. var char = pfpConfig[characterNumb] var pfps = char.pfps