presence: forgot to add state/details url to non-listening
This commit is contained in:
parent
90d0badc66
commit
d745c321b6
1 changed files with 10 additions and 1 deletions
|
@ -220,9 +220,18 @@ presence.callback = async function (msg, line) {
|
||||||
descLines.push(albumLine);
|
descLines.push(albumLine);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (activity.details) descLines.push(activity.details);
|
if (activity.details) {
|
||||||
|
let details = activity.details;
|
||||||
|
if (activity.details_url) {
|
||||||
|
details = `[${details}](${activity.details_url})`;
|
||||||
|
}
|
||||||
|
descLines.push(details);
|
||||||
|
}
|
||||||
if (activity.state) {
|
if (activity.state) {
|
||||||
let stateLine = activity.state;
|
let stateLine = activity.state;
|
||||||
|
if (activity.state_url) {
|
||||||
|
stateLine = `[${stateLine}](${activity.state_url})`;
|
||||||
|
}
|
||||||
if (activity.party?.size) {
|
if (activity.party?.size) {
|
||||||
stateLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`;
|
stateLine += ` (${activity.party.size[0]} of ${activity.party.size[1]})`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue