From 894dd858c380e5ac8bcd882294f044c325ef379e Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 1 Dec 2022 21:56:03 -0500 Subject: Modularized audio backend --- commands/status.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'commands/status.js') diff --git a/commands/status.js b/commands/status.js index 958a359..3143e16 100644 --- a/commands/status.js +++ b/commands/status.js @@ -21,7 +21,8 @@ import { EmbedBuilder, SlashCommandBuilder } from 'discord.js'; import { parseFile } from 'music-metadata'; -import { audio, currentTrack, files, playerState, audioTitle, metadataEmpty, duration } from '../AudioBackend.js'; +import { audio, metadataEmpty, duration, audioTitle, currentTrack } from '../backend/PlayAudio.js'; +import { files, playerState } from '../backend/AudioControl.js'; export default { data: new SlashCommandBuilder() @@ -54,7 +55,7 @@ export default { { name: 'State', value: playerState }, { name: 'Tracks', value: `${audioID}/${files.length}` }, { name: 'Duration', value: duration } - ) + ) .setColor('#0066ff'); if (metadataEmpty === true) { -- cgit v1.2.3