aboutsummaryrefslogtreecommitdiff
path: root/commands/status.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-11-29 00:37:42 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-11-29 00:37:42 -0500
commit6d2b8650972cde46953999195f26c29bb5660d36 (patch)
treefa05db82f522daf69a69371ee1edc01ee7dbddf7 /commands/status.js
parente848cfbbbf1f3387c3d483f54db99b4474068928 (diff)
downloadDLAP-6d2b8650972cde46953999195f26c29bb5660d36.tar.gz
DLAP-6d2b8650972cde46953999195f26c29bb5660d36.tar.bz2
DLAP-6d2b8650972cde46953999195f26c29bb5660d36.zip
Added duration
Diffstat (limited to 'commands/status.js')
-rw-r--r--commands/status.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/status.js b/commands/status.js
index b564a88..4e4bebe 100644
--- a/commands/status.js
+++ b/commands/status.js
@@ -21,7 +21,7 @@
import { EmbedBuilder, SlashCommandBuilder } from 'discord.js';
import { parseFile } from 'music-metadata';
-import { audio, currentTrack, files, playerState, audioTitle, metadataEmpty } from '../AudioBackend.js';
+import { audio, currentTrack, files, playerState, audioTitle, metadataEmpty, formattedDuration } from '../AudioBackend.js';
export default {
data: new SlashCommandBuilder()
@@ -52,6 +52,7 @@ export default {
.setAuthor({ name: `${bot.user.username} Status`, iconURL: bot.user.avatarURL() })
.addFields({ name: 'State', value: playerState })
.addFields({ name: 'Tracks', value: `${audioID}/${files.length}` })
+ .addFields({ name: 'Duration', value: formattedDuration })
.setColor('#0066ff');
if (metadataEmpty === true) {