diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-12-21 14:58:30 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-12-21 15:19:38 -0500 |
| commit | e2582087e23c509b22bc255c9e5e4b5e11696a26 (patch) | |
| tree | 4c8100992d8c572dbb0ce28c8cefa4ee2f4855b3 /Commands/status.js | |
| parent | a1eb0704666f613857c7cf87234c1fd485e97942 (diff) | |
| download | DLAP-e2582087e23c509b22bc255c9e5e4b5e11696a26.tar.gz DLAP-e2582087e23c509b22bc255c9e5e4b5e11696a26.tar.bz2 DLAP-e2582087e23c509b22bc255c9e5e4b5e11696a26.zip | |
Hopefully fixed the inaccurate information
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 ee6300c..aeb909d 100644 --- a/Commands/status.js +++ b/Commands/status.js @@ -41,7 +41,7 @@ export default { const members = voiceChannel.members.filter(m => !votes.has(m.id)); // Calculate the number of votes required to skip the audio track - const votesRequired = Math.ceil(members.size / 2); + const votesRequired = Math.ceil((members.size - votes.size) / 2); if (audioID >= files.length) { audioName = 'Playlist Finished'; @@ -65,7 +65,7 @@ export default { { name: 'State', value: `${playerState}` }, { name: 'Tracks', value: `${audioID}/${files.length}` }, { name: 'Duration', value: `${duration}` }, - { name: 'Votes Needed', value: `${votesRequired - votes.size}` } + { name: 'Votes Needed', value: `${votesRequired}` } ) .setColor('#0066ff'); |
