This commit is contained in:
bingus_violet 2024-03-08 07:27:31 -06:00
parent c6ff7c1e87
commit b283c97a06
5 changed files with 7 additions and 5 deletions

View file

@ -4,11 +4,10 @@
"name": "Misery",
"pfpRoot": "/pfps/Misery/",
"pfps": {
"online": ["MiseryBedHappy.png"],
"dnd": ["MiseryBedAngry.png"],
"idle": ["MiseryBedNeutral.png"],
"offline": [],
"fallback": "/pfps/Misery/MiseryBedNeutral.png"
"online": ["MiseryHappy.png", "MiseryNeutral.png"],
"dnd": ["MiseryAngry.png", "MiseryBedAngry.png"],
"idle": ["MiseryBedNeutral.png", "MiseryBedHappy.png"],
"fallback": "/pfps/Misery/MiseryNeutral.png"
}
}
],

View file

@ -37,6 +37,9 @@ app.get("/v1/pfp", (req, res) => {
try {
var status = lanyardData.d.discord_status
if (status == "offline") {
status = "idle"
}
var pfpPool = pfps[status]
var rand = Math.floor(Math.random() * pfpPool.length)
var pfp = path.join(__dirname, char.pfpRoot, pfpPool[rand])

BIN
pfps/Misery/MiseryAngry.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

BIN
pfps/Misery/MiseryHappy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB