From ef5cf82a64c58e572bbfbf3e45d03152fb96c60a Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 29 Nov 2022 09:29:54 -0500 Subject: Updated README and reducing variable duplication --- commands/status.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'commands/status.js') 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'); -- cgit v1.2.3