This commit is contained in:
insert 2024-08-10 15:02:33 -04:00
parent 56e43c1e63
commit f5ce98ed6d
Signed by: insert
GPG key ID: A70775C389ACF105

View file

@ -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!")