aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-10 17:20:37 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-10 17:20:37 -0400
commit6b8154ba82c8089bcb47e2d3b6fea66353ba27bc (patch)
tree6c1ef956a2e46b1fc7fdabe56dd60da67f243398 /commands
parent10e93faf891c3fa3a68edb59d4ffb9d939680dc6 (diff)
downloadDLAP-6b8154ba82c8089bcb47e2d3b6fea66353ba27bc.tar.gz
DLAP-6b8154ba82c8089bcb47e2d3b6fea66353ba27bc.tar.bz2
DLAP-6b8154ba82c8089bcb47e2d3b6fea66353ba27bc.zip
Fixed an issue where it doesn't shuffle properly
Diffstat (limited to 'commands')
-rw-r--r--commands/status.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/commands/status.js b/commands/status.js
index e135113..d3d70a6 100644
--- a/commands/status.js
+++ b/commands/status.js
@@ -34,6 +34,10 @@ export default {
let audioName = audioArray[audioID];
audioName = audioName.split('.').slice(0, -1).join('.');
+ if (audioName == null) {
+ audioName = 'Finish';
+ }
+
const controlEmbed = new MessageEmbed()
.setAuthor({ name: `${bot.user.username} Status`, iconURL: bot.user.avatarURL() })
.addField('State', playerState)