aboutsummaryrefslogtreecommitdiff
path: root/commands/status.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-07-08 12:09:06 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-07-08 12:09:06 -0400
commit2471564098b1de1a635d90f381ef67cf2cb43511 (patch)
treec0e92769059e51187f8645f2b43bf26a8cef8a71 /commands/status.js
parent83e4c8679c656ecb352ddc34d5dced9518ba240a (diff)
downloadDLAP-2471564098b1de1a635d90f381ef67cf2cb43511.tar.gz
DLAP-2471564098b1de1a635d90f381ef67cf2cb43511.tar.bz2
DLAP-2471564098b1de1a635d90f381ef67cf2cb43511.zip
New command; Some tweaks
Diffstat (limited to 'commands/status.js')
-rw-r--r--commands/status.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/commands/status.js b/commands/status.js
index e012239..7952238 100644
--- a/commands/status.js
+++ b/commands/status.js
@@ -28,13 +28,18 @@ export default {
.setName('status')
.setDescription('Checks what audio file is playing currently'),
async execute(interaction, bot) {
- let nextAudio = currentTrack
- nextAudio++
+
+ let audioID = currentTrack
+ audioID++
+
+ let audioName = audioArray[audioID]
+ audioName = audioName.split('.').slice(0, -1).join('.');
+
let controlEmbed = new MessageEmbed()
.setAuthor({name: `${bot.user.username} Status`, iconURL: bot.user.avatarURL()})
.addField('State', playerState)
.addField('Currently Playing', audio)
- .addField('Next Music', audioArray[nextAudio])
+ .addField('Up Next', audioName)
.setColor('#0066ff')
interaction.reply({embeds:[controlEmbed], ephemeral:true})
},