From f91f277a30a081cde95805bf39adeb835be98c3f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Sun, 4 Dec 2022 01:55:58 -0500 Subject: Added repeat toggle; Did some optiminizations to the code --- 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 cf49509..d19e4ac 100644 --- a/commands/status.js +++ b/commands/status.js @@ -38,7 +38,7 @@ export default { if (audioName === undefined) { audioName = 'Playlist Finished'; } else { - if (metadataEmpty === false) { + if (!metadataEmpty) { try { const { common } = await parseFile('music/' + audioName); audioName = common.title; @@ -59,7 +59,7 @@ export default { ) .setColor('#0066ff'); - if (metadataEmpty === true) { + if (metadataEmpty) { controlEmbed.addFields( { name: 'Currently Playing', value: audio }, { name: 'Up Next', value: audioName } -- cgit v1.2.3