From 3637e72ff344571f8fe9e835347225f53c4fb4da Mon Sep 17 00:00:00 2001 From: insert Date: Sat, 10 Aug 2024 22:48:11 -0400 Subject: [PATCH] Update --- gameutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gameutils.py b/gameutils.py index d3ad3f3..1fd693e 100644 --- a/gameutils.py +++ b/gameutils.py @@ -73,10 +73,10 @@ 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)) + users = list(set(users) - set(disusers)) random.shuffle(users) for i in range(len(users)): message = message + f"{str(i+1)}\. <@{users[i].id}>\n"