From 3d5fc4b2ab42714c83bf464e0e9b47edf1e9c8ac Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Wed, 20 Apr 2022 14:57:32 -0600 Subject: [PATCH] music.np: length -> nowPlaying.length --- src/modules/music.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/music.js b/src/modules/music.js index ad17bab..cedf2da 100644 --- a/src/modules/music.js +++ b/src/modules/music.js @@ -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(