diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-04 01:55:58 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-04 01:55:58 -0500 |
| commit | f91f277a30a081cde95805bf39adeb835be98c3f (patch) | |
| tree | 86c3c8c1299dcf33a180c87c16e7d37bade0291f /commands/status.js | |
| parent | c576ed4e454fe6b4974e7ad873670e3adc9d0a96 (diff) | |
| download | DLAP-f91f277a30a081cde95805bf39adeb835be98c3f.tar.gz DLAP-f91f277a30a081cde95805bf39adeb835be98c3f.tar.bz2 DLAP-f91f277a30a081cde95805bf39adeb835be98c3f.zip | |
Added repeat toggle; Did some optiminizations to the code
Diffstat (limited to 'commands/status.js')
| -rw-r--r-- | commands/status.js | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |
