diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-07-10 17:49:48 -0400 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-07-10 17:49:48 -0400 |
| commit | eb90e1a4ffbe5f0b82bea296a97786ca5cc81041 (patch) | |
| tree | 5d57eddb4de893bd40703c005e8ecf332ef6bbad /commands | |
| parent | 6b8154ba82c8089bcb47e2d3b6fea66353ba27bc (diff) | |
| download | DLAP-eb90e1a4ffbe5f0b82bea296a97786ca5cc81041.tar.gz DLAP-eb90e1a4ffbe5f0b82bea296a97786ca5cc81041.tar.bz2 DLAP-eb90e1a4ffbe5f0b82bea296a97786ca5cc81041.zip | |
Fixed status command
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/status.js | 8 |
1 files 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() |
