Update index.js

This commit is contained in:
nin0dev 2024-05-28 08:42:09 -04:00 committed by GitHub
parent f05c6af3ba
commit bd1fbb3bc7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,10 +41,15 @@ function onUpdate(data) {
listening = true listening = true
content = `Listening to ${presence["details"]} - ${presence["state"]}` content = `Listening to ${presence["details"]} - ${presence["state"]}`
} }
if(presence["id"] == "spotify:1") { // built in spotify hooluy shit normal presence)
listening = true
content = `Listening to ${presence["details"]} - ${presence["state"]}`
}
if(presence["type"] == 0 && presence["application_id"] != "463151177836658699" && presence["application_id"] != "1108588077900898414") { // generic playing status that isn't vencord lastfm or premid if(presence["type"] == 0 && presence["application_id"] != "463151177836658699" && presence["application_id"] != "1108588077900898414") { // generic playing status that isn't vencord lastfm or premid
listening = false listening = false
content = `Playing ${presence["name"]}` content = `Playing ${presence["name"]}`
} }
}); });
document.getElementById("presence").style.display = content == "" ? "none": "flex" document.getElementById("presence").style.display = content == "" ? "none": "flex"
document.getElementById("presence-content").innerText = content document.getElementById("presence-content").innerText = content