/[sudobot]/trunk/src/commands/information/ProfileCommand.ts
ViewVC logotype

Diff of /trunk/src/commands/information/ProfileCommand.ts

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 416 by rakin, Mon Jul 29 17:30:07 2024 UTC revision 453 by rakin, Mon Jul 29 17:30:19 2024 UTC
# Line 133  export default class ProfileCommand exte Line 133  export default class ProfileCommand exte
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    

Legend:
Removed from v.416  
changed lines
  Added in v.453

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26