Fix
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user