diff --git a/haugebot_twitch/vote_cog.py b/haugebot_twitch/vote_cog.py index ed9b9c73e90c4a5b93d5a1d93ff78593edabb0d6..8fee59301eafbcb8dc037ed29433d82a647b3c73 100644 --- a/haugebot_twitch/vote_cog.py +++ b/haugebot_twitch/vote_cog.py @@ -37,6 +37,9 @@ class VoteCog(commands.Cog): self.vote_blocked = None async def notify_vote_result(self, message, final_result=False): + if len(self.votes) < self.MIN_VOTES: + return + votes_list = self.get_votes() output = f'{self.PLUS} {votes_list[0][0]} ({votes_list[0][1]}%), ' \