This commit is contained in:
insert 2024-08-10 17:01:48 -04:00
parent f17b9723b7
commit 6d4157fc9a
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -17,8 +17,9 @@ class GameView(nextcord.ui.View):
)
async def nextturn(self, button: nextcord.ui.Button, interaction: nextcord.Interaction):
ogmsg = interaction.message.content.split("\n")
turnmessage = ogmsg[0]
ogmsg.pop(0)
message = "It has been decreed..\n"
message = f"{turnmessage}\n"
found = False
turnover = False
for i in range(len(ogmsg)):
@ -62,12 +63,12 @@ class gameutils(commands.Cog):
@nextcord.slash_command(
name="turngen",
description="Roll the next turn for a certian role",
guild_ids=[1247883904178978927],
guild_ids=[1247883904178978927,699285282276507708],
default_member_permissions=nextcord.Permissions(manage_roles=True),
)
@nextcord.ext.application_checks.has_permissions(manage_roles=True)
async def turngen(self, interaction: nextcord.Interaction, role: nextcord.Role):
message = "It has been decreed..\n"
async def turngen(self, interaction: nextcord.Interaction, role: nextcord.Role, turnmessage: str):
message = f"{turnmessage}\n"
users = role.members
random.shuffle(users)
for i in range(len(users)):