mirror of
https://github.com/BluemediaDev/muse.git
synced 2025-06-27 17:22:42 +02:00
Add /loop-queue command (#989)
This commit is contained in:
parent
45bdbd1494
commit
769f9da8a2
6 changed files with 64 additions and 1 deletions
|
@ -46,7 +46,7 @@ const getPlayerUI = (player: Player) => {
|
|||
const button = player.status === STATUS.PLAYING ? '⏹️' : '▶️';
|
||||
const progressBar = getProgressBar(15, position / song.length);
|
||||
const elapsedTime = song.isLive ? 'live' : `${prettyTime(position)}/${prettyTime(song.length)}`;
|
||||
const loop = player.loopCurrentSong ? '🔁' : '';
|
||||
const loop = player.loopCurrentSong ? '🔂' : player.loopCurrentQueue ? '🔁' : '';
|
||||
return `${button} ${progressBar} \`[${elapsedTime}]\` 🔉 ${loop}`;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue