This commit is contained in:
insert 2024-08-10 22:48:11 -04:00
parent 9530dab457
commit 3637e72ff3
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -73,9 +73,9 @@ class gameutils(commands.Cog):
@nextcord.ext.application_checks.has_permissions(manage_roles=True)
async def turngen(self, interaction: nextcord.Interaction, role: nextcord.Role, turnmessage: str, disadvantagerole: nextcord.Role = nextcord.SlashOption(required=False)):
message = f"{turnmessage}\n"
users = role.members
if disadvantagerole:
disusers = disadvantagerole.members
users = role.members
users = list(set(users) - set(disusers))
random.shuffle(users)
for i in range(len(users)):