music.np: length -> nowPlaying.length

This commit is contained in:
Cynthia Foxwell 2022-04-20 14:57:32 -06:00
parent adc7b3de6d
commit 3d5fc4b2ab

View file

@ -533,7 +533,7 @@ command.callback = async function (msg, line) {
const timeEnd = formatTime(nowPlaying.length);
const timePos = formatTime(position);
const progress = position / length;
const progress = position / nowPlaying.length;
const barLength = Math.round(progress * NOWPLAYING_BAR_LENGTH);
const bar = `\`[${"=".repeat(barLength)}${" ".repeat(