diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-15 20:19:36 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-15 20:19:36 -0500 |
| commit | 891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c (patch) | |
| tree | 645affdddeadca3a470a0d8385d28d7d09696a53 /Utilities | |
| parent | ec7a6d2cd4b0d25251d5e9691a148a2b07984509 (diff) | |
| download | DLAP-891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c.tar.gz DLAP-891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c.tar.bz2 DLAP-891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c.zip | |
Deploy command changes; Filter bots on vote; Fixed status
Diffstat (limited to 'Utilities')
| -rw-r--r-- | Utilities/Voting.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/Voting.js b/Utilities/Voting.js index 452dc55..fe38ab0 100644 --- a/Utilities/Voting.js +++ b/Utilities/Voting.js @@ -57,7 +57,7 @@ export async function voteSkip(interaction, bot) { if (interaction.options.getSubcommand() === 'vote') { // Get the members of the voice channel who have not voted yet const voiceChannel = interaction.member.voice.channel; - const members = voiceChannel.members.filter(m => !votes.has(m.id)); + const members = voiceChannel.members.filter(m => !votes.has(m.id) && !m.user.bot); // Calculate the number of votes required to skip the audio track const votesRequired = Math.ceil(members.size / 2); |
