aboutsummaryrefslogtreecommitdiff
path: root/commands/status.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-11-29 09:29:54 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-11-29 09:29:54 -0500
commitef5cf82a64c58e572bbfbf3e45d03152fb96c60a (patch)
treeb203d86cecd04c72e01246b3e774085e4182977f /commands/status.js
parent04a22f66087656fdbb8d0f98c9331334cae6eb22 (diff)
downloadDLAP-ef5cf82a64c58e572bbfbf3e45d03152fb96c60a.tar.gz
DLAP-ef5cf82a64c58e572bbfbf3e45d03152fb96c60a.tar.bz2
DLAP-ef5cf82a64c58e572bbfbf3e45d03152fb96c60a.zip
Updated README and reducing variable duplication
Diffstat (limited to 'commands/status.js')
-rw-r--r--commands/status.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/status.js b/commands/status.js
index 6faa3bb..958a359 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, formattedDuration } from '../AudioBackend.js';
+import { audio, currentTrack, files, playerState, audioTitle, metadataEmpty, duration } from '../AudioBackend.js';
export default {
data: new SlashCommandBuilder()
@@ -53,7 +53,7 @@ export default {
.addFields(
{ name: 'State', value: playerState },
{ name: 'Tracks', value: `${audioID}/${files.length}` },
- { name: 'Duration', value: formattedDuration }
+ { name: 'Duration', value: duration }
)
.setColor('#0066ff');