Update
This commit is contained in:
parent
56e43c1e63
commit
f5ce98ed6d
1 changed files with 6 additions and 6 deletions
12
gameutils.py
12
gameutils.py
|
@ -20,18 +20,18 @@ class GameView(nextcord.ui.View):
|
|||
ogmsg.pop(0)
|
||||
message = "It has been decreed..\n"
|
||||
found = False
|
||||
for i in ogmsg:
|
||||
if i.startswith("~") or i.startswith("\~"):
|
||||
for i in range(len(ogmsg)):
|
||||
if ogmsg[i].startswith("~"):
|
||||
message = message + i + "\n"
|
||||
continue
|
||||
if not found:
|
||||
i = "~~" + i + "~~"
|
||||
turnping = i.split("<")[1].split(">")[0]
|
||||
newmsg = "~~" + ogmsg[i] + "~~"
|
||||
turnping = ogmsg[i+1].split("<")[1].split(">")[0]
|
||||
found = True
|
||||
message = message + i + "\n"
|
||||
message = message + newmsg + "\n"
|
||||
continue
|
||||
else:
|
||||
message = message + i + "\n"
|
||||
message = message + ogmsg[i] + "\n"
|
||||
print(interaction.user.guild_permissions)
|
||||
await interaction.response.edit_message(content=message)
|
||||
await interaction.followup.send(f"<{turnping}> it is now your turn!")
|
||||
|
|
Loading…
Reference in a new issue