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",
|
||||
"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"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
|
3
index.js
3
index.js
|
@ -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
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