Skip to content

Commit

Permalink
Merge pull request #383 from konhi/discord
Browse files Browse the repository at this point in the history
Add "Listen Along" button, solve #353
  • Loading branch information
th-ch authored Aug 22, 2021
2 parents d089487 + 7fa1278 commit fe0f213
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/discord/back.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fe0f213

Please sign in to comment.