New PFPs
This commit is contained in:
parent
c6ff7c1e87
commit
b283c97a06
5 changed files with 7 additions and 5 deletions
|
@ -4,11 +4,10 @@
|
||||||
"name": "Misery",
|
"name": "Misery",
|
||||||
"pfpRoot": "/pfps/Misery/",
|
"pfpRoot": "/pfps/Misery/",
|
||||||
"pfps": {
|
"pfps": {
|
||||||
"online": ["MiseryBedHappy.png"],
|
"online": ["MiseryHappy.png", "MiseryNeutral.png"],
|
||||||
"dnd": ["MiseryBedAngry.png"],
|
"dnd": ["MiseryAngry.png", "MiseryBedAngry.png"],
|
||||||
"idle": ["MiseryBedNeutral.png"],
|
"idle": ["MiseryBedNeutral.png", "MiseryBedHappy.png"],
|
||||||
"offline": [],
|
"fallback": "/pfps/Misery/MiseryNeutral.png"
|
||||||
"fallback": "/pfps/Misery/MiseryBedNeutral.png"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|
3
index.js
3
index.js
|
@ -37,6 +37,9 @@ app.get("/v1/pfp", (req, res) => {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var status = lanyardData.d.discord_status
|
var status = lanyardData.d.discord_status
|
||||||
|
if (status == "offline") {
|
||||||
|
status = "idle"
|
||||||
|
}
|
||||||
var pfpPool = pfps[status]
|
var pfpPool = pfps[status]
|
||||||
var rand = Math.floor(Math.random() * pfpPool.length)
|
var rand = Math.floor(Math.random() * pfpPool.length)
|
||||||
var pfp = path.join(__dirname, char.pfpRoot, pfpPool[rand])
|
var pfp = path.join(__dirname, char.pfpRoot, pfpPool[rand])
|
||||||
|
|
BIN
pfps/Misery/MiseryAngry.png
Normal file
BIN
pfps/Misery/MiseryAngry.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
BIN
pfps/Misery/MiseryHappy.png
Normal file
BIN
pfps/Misery/MiseryHappy.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4 KiB |
BIN
pfps/Misery/MiseryNeutral.png
Normal file
BIN
pfps/Misery/MiseryNeutral.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Loading…
Reference in a new issue