Merge pull request #383 from konhi/discord

Add "Listen Along" button, solve #353
This commit is contained in:
th-ch
2021-08-23 01:19:00 +02:00
committed by GitHub

View File

@ -29,6 +29,9 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {
songInfo.uploadDate,
songInfo.views.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",") + " views"
].join(' || '),
buttons: [
{ label: "Listen Along", url: songInfo.url },
]
};
if (songInfo.isPaused) {