133 |
} |
} |
134 |
else if (a.type === 'LISTENING') { |
else if (a.type === 'LISTENING') { |
135 |
if (a.name === 'Spotify') { |
if (a.name === 'Spotify') { |
136 |
activities.push(`:notes: Listening to **Spotify**: **${a.state?.replace(/\;/, ',')} - ${a.details}**`); |
const url = a.syncId ? `https://open.spotify.com/track/${a.syncId}` : null; |
137 |
|
activities.push(`:notes: Listening to **Spotify**: ${url ? '[' : '**'}${a.state?.replace(/\;/, ',')} - ${a.details}${url ? '](' + url + ')' : '**'}`); |
138 |
continue; |
continue; |
139 |
} |
} |
140 |
|
|