New params for songs
This commit is contained in:
parent
7537fd8bf6
commit
bf7046dd0a
1 changed files with 9 additions and 0 deletions
9
index.js
9
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) {
|
||||
|
|
Loading…
Reference in a new issue