New params for songs

This commit is contained in:
bingus_violet 2024-06-29 16:06:16 -05:00
parent 7537fd8bf6
commit bf7046dd0a

View file

@ -111,6 +111,15 @@ function socketeer() {
for (var i = 0; i < lanyardData.d.activities.length; i++) {
var activity = lanyardData.d.activities[i]
if (activity.type == 2) {
// if (activity.name == "Spotify") {
if (activity.assets)
activity.song = "Song: " + activity.details
activity.album = "Album: " + activity.assets.large_text
activity.artist = "Artist: " + activity.state
}
}
if (activity.type != 4) {
newArr.push(activity)
} else if (activity.type == 4) {