From eb90e1a4ffbe5f0b82bea296a97786ca5cc81041 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 10 Jul 2022 17:49:48 -0400 Subject: Fixed status command --- commands/status.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/status.js b/commands/status.js index d3d70a6..d769cb5 100644 --- a/commands/status.js +++ b/commands/status.js @@ -32,10 +32,10 @@ export default { audioID++; let audioName = audioArray[audioID]; - audioName = audioName.split('.').slice(0, -1).join('.'); - - if (audioName == null) { - audioName = 'Finish'; + if (audioName === undefined) { + audioName = 'Playlist Finished'; + } else { + audioName = audioName.split('.').slice(0, -1).join('.'); } const controlEmbed = new MessageEmbed() -- cgit v1.2.3