Ads
This commit is contained in:
parent
ddee72e2a3
commit
d696602ac1
6 changed files with 19 additions and 21 deletions
34
PFPs.json
34
PFPs.json
|
@ -3,22 +3,27 @@
|
||||||
{
|
{
|
||||||
"name": "DreamPicrew",
|
"name": "DreamPicrew",
|
||||||
"pfpRoot": "/pfps/OmoriPicrew/Dream",
|
"pfpRoot": "/pfps/OmoriPicrew/Dream",
|
||||||
"pfps": {
|
"pfps": ["Happy.png", "Happy2.png", "Neutral.png", "Victory.png"]
|
||||||
"online": ["Happy.png", "Happy2.png", "Neutral.png", "Victory.png"],
|
},
|
||||||
"dnd": ["Angry.png", "Angry2.png"],
|
{
|
||||||
"idle": ["Sad2.png", "Sad.png"],
|
"name": "Misery",
|
||||||
"fallback": "/pfps/OmoriPicrew/Dream/Neutral.png"
|
"pfpRoot": "/pfps/Misery",
|
||||||
}
|
"pfps": ["MiseryAngry.png", "MiseryBedAngry.png", "MiseryHappy.png", "MiseryBedHappy.png", "MiseryNeutral.png", "MiseryBedNeutral.png"]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Basil",
|
"name": "Basil",
|
||||||
"pfpRoot": "/pfps/Basil",
|
"pfpRoot": "/pfps/Basil",
|
||||||
"pfps": {
|
"pfps": ["BasilHappy.webp", "BasilManic.webp", "BasilNeutral.webp", "BasilVictory.webp"]
|
||||||
"online": ["BasilHappy.webp", "BasilManic.webp", "BasilNeutral.webp", "BasilVictory.webp"],
|
},
|
||||||
"dnd": ["BasilAngry.webp", "BasilEnraged.webp", "BasilFurious.webp"],
|
{
|
||||||
"idle": ["BasilToast.webp"],
|
"name": "Teto",
|
||||||
"fallback": "/pfps/Basil/BasilToast.webp"
|
"pfpRoot": "/pfps/Teto",
|
||||||
}
|
"pfps": ["Teto.gif", "TetoBaka.gif", "TetoWag.gif"]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Ceoreparque",
|
||||||
|
"pfpRoot": "/pfps/Ceoreparque",
|
||||||
|
"pfps": ["Ceor.png", "Floof.png", "Ingame.png"]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"christmas": [
|
"christmas": [
|
||||||
|
@ -26,10 +31,7 @@
|
||||||
"name": "Misery",
|
"name": "Misery",
|
||||||
"pfpRoot": "/pfps/Misery/",
|
"pfpRoot": "/pfps/Misery/",
|
||||||
"pfps": {
|
"pfps": {
|
||||||
"online": ["MiserySantaHappy.png"],
|
"online": ["MiserySantaHappy.png","MiserySantaAngry.png","MiserySantaNeutral.png"]
|
||||||
"dnd": ["MiserySantaAngry.png"],
|
|
||||||
"idle": ["MiserySantaNeutral.png"],
|
|
||||||
"fallback": "/pfps/Misery/MiserySantaNeutral.png"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
6
index.js
6
index.js
|
@ -38,11 +38,7 @@ app.get("/v1/pfp", (req, res) => {
|
||||||
var pfps = char.pfps
|
var pfps = char.pfps
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var status = lanyardData.d.discord_status
|
var pfpPool = pfps
|
||||||
if (status == "offline") {
|
|
||||||
status = "idle"
|
|
||||||
}
|
|
||||||
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])
|
||||||
res.sendFile(pfp)
|
res.sendFile(pfp)
|
||||||
|
|
BIN
pfps/Ceoreparque/Ceor.png
Normal file
BIN
pfps/Ceoreparque/Ceor.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 154 KiB |
BIN
pfps/Ceoreparque/Floof.png
Normal file
BIN
pfps/Ceoreparque/Floof.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 144 KiB |
BIN
pfps/Ceoreparque/Ingame.png
Normal file
BIN
pfps/Ceoreparque/Ingame.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 50 KiB |
BIN
pfps/Teto/Teto.gif
Normal file
BIN
pfps/Teto/Teto.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 2 MiB |
Loading…
Reference in a new issue