fm: Show which last.fm username the top tracks are from

This commit is contained in:
SileNce5k 2024-03-07 12:57:08 +01:00
parent 4a67153fb9
commit 27ec24b7d4
No known key found for this signature in database
GPG key ID: 961132EB78C8915F

View file

@ -44,7 +44,7 @@ module.exports = async function (userID, option) {
reject(error);
});
});
sendText = `Your top 10 tracks are:\n`;
sendText = `Top weekly tracks for ${lastfmUsername}:\n`;
for(let i = 0; i < tracks.length; i++){
sendText += `${i}. ${tracks[i].artist} - ${tracks[i].song} (${tracks[i].playcount} plays)\n`;
}