diff --git a/src/cogs/poll.py b/src/cogs/poll.py index 351d61d..c0e58f8 100644 --- a/src/cogs/poll.py +++ b/src/cogs/poll.py @@ -8,6 +8,7 @@ import discord from discord.ext import commands import logging from datetime import datetime, timedelta +from math import ceil HOURS = 24 @@ -40,7 +41,7 @@ class PollCog(commands.Cog): for member in interaction.guild.members if not member.bot and member.status != discord.Status.offline ] - required_votes = max(1, len(active_members) // 2) + required_votes = max(1, ceil(len(active_members) / 2)) question = f"Should we invite {username} to the server?" duration = timedelta(hours=HOURS)