From 891cf0ecdad9a1a78fdf5d127a60bdcc8e54ae5c Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Thu, 15 Feb 2024 20:19:36 -0500 Subject: Deploy command changes; Filter bots on vote; Fixed status --- Utilities/Voting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Utilities') 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); -- cgit v1.2.3