aboutsummaryrefslogtreecommitdiff
path: root/Utilities/Voting.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-15 20:19:36 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-15 20:19:36 -0500
commit891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c (patch)
tree645affdddeadca3a470a0d8385d28d7d09696a53 /Utilities/Voting.js
parentec7a6d2cd4b0d25251d5e9691a148a2b07984509 (diff)
downloadDLAP-891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c.tar.gz
DLAP-891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c.tar.bz2
DLAP-891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c.zip
Deploy command changes; Filter bots on vote; Fixed status
Diffstat (limited to 'Utilities/Voting.js')
-rw-r--r--Utilities/Voting.js2
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);