Update
This commit is contained in:
parent
d0013d973b
commit
78559e3b72
1 changed files with 2 additions and 2 deletions
|
@ -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!")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue