From bf7046dd0a02ed3e38a4cb9d16ffa7f5733d2616 Mon Sep 17 00:00:00 2001 From: bingus_violet Date: Sat, 29 Jun 2024 16:06:16 -0500 Subject: [PATCH] New params for songs --- index.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/index.js b/index.js index 09165b0..c93be19 100644 --- a/index.js +++ b/index.js @@ -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) {