Update
This commit is contained in:
parent
9530dab457
commit
3637e72ff3
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue