This commit is contained in:
insert 2024-08-10 14:36:54 -04:00
parent d0013d973b
commit 78559e3b72
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -21,7 +21,7 @@ class GameView(nextcord.ui.View):
message = "It has been decreed..\n" message = "It has been decreed..\n"
found = False found = False
for i in ogmsg: for i in ogmsg:
if i.startswith("~"): if i.startswith("~") or i.startswith("\~"):
message = message + i + "\n" message = message + i + "\n"
continue continue
if not found: if not found:
@ -54,7 +54,7 @@ class gameutils(commands.Cog):
users = role.members users = role.members
random.shuffle(users) random.shuffle(users)
for i in range(len(users)): for i in range(len(users)):
message = message + f"{str(i+1)}. <@{users[i]}>\n" message = message + f"{str(i+1)}. <@{users[i].id}>\n"
await interaction.response.send_message(nextcord.utils.escape_markdown(message), view=GameView(), allowed_mentions=nextcord.AllowedMentions.none()) await interaction.response.send_message(nextcord.utils.escape_markdown(message), view=GameView(), allowed_mentions=nextcord.AllowedMentions.none())
await interaction.followup.send(f"<@{users[0].id}> it is now your turn!") await interaction.followup.send(f"<@{users[0].id}> it is now your turn!")