utility.presence: spotify parity on state and album
This commit is contained in:
parent
4173371c11
commit
b9d2d4c5d6
1 changed files with 8 additions and 1 deletions
|
@ -1706,9 +1706,16 @@ presence.callback = async function (msg, line) {
|
||||||
}
|
}
|
||||||
descLines.push(`**${details}**`);
|
descLines.push(`**${details}**`);
|
||||||
}
|
}
|
||||||
if (activity.state) descLines.push(activity.state);
|
if (activity.state) {
|
||||||
|
let stateLine = activity.state;
|
||||||
|
if (activity.name == "Spotify")
|
||||||
|
stateLine = "by " + stateLine.split("; ").join(", ");
|
||||||
|
descLines.push(stateLine);
|
||||||
|
}
|
||||||
if (activity.assets?.large_text) {
|
if (activity.assets?.large_text) {
|
||||||
let albumLine = activity.assets.large_text;
|
let albumLine = activity.assets.large_text;
|
||||||
|
if (activity.name == "Spotify") albumLine = "on " + albumLine;
|
||||||
|
|
||||||
if (activity.party?.size) {
|
if (activity.party?.size) {
|
||||||
albumLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`;
|
albumLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue