aboutsummaryrefslogtreecommitdiff
path: root/commands/status.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-10 17:49:48 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-10 17:49:48 -0400
commiteb90e1a4ffbe5f0b82bea296a97786ca5cc81041 (patch)
tree5d57eddb4de893bd40703c005e8ecf332ef6bbad /commands/status.js
parent6b8154ba82c8089bcb47e2d3b6fea66353ba27bc (diff)
downloadDLAP-eb90e1a4ffbe5f0b82bea296a97786ca5cc81041.tar.gz
DLAP-eb90e1a4ffbe5f0b82bea296a97786ca5cc81041.tar.bz2
DLAP-eb90e1a4ffbe5f0b82bea296a97786ca5cc81041.zip
Fixed status command
Diffstat (limited to 'commands/status.js')
-rw-r--r--commands/status.js8
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()