Update
This commit is contained in:
parent
9530dab457
commit
3637e72ff3
1 changed files with 2 additions and 2 deletions
|
@ -73,9 +73,9 @@ class gameutils(commands.Cog):
|
||||||
@nextcord.ext.application_checks.has_permissions(manage_roles=True)
|
@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)):
|
async def turngen(self, interaction: nextcord.Interaction, role: nextcord.Role, turnmessage: str, disadvantagerole: nextcord.Role = nextcord.SlashOption(required=False)):
|
||||||
message = f"{turnmessage}\n"
|
message = f"{turnmessage}\n"
|
||||||
|
users = role.members
|
||||||
if disadvantagerole:
|
if disadvantagerole:
|
||||||
disusers = disadvantagerole.members
|
disusers = disadvantagerole.members
|
||||||
users = role.members
|
|
||||||
users = list(set(users) - set(disusers))
|
users = list(set(users) - set(disusers))
|
||||||
random.shuffle(users)
|
random.shuffle(users)
|
||||||
for i in range(len(users)):
|
for i in range(len(users)):
|
||||||
|
|
Loading…
Reference in a new issue