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) ogmsg.pop(0)
message = "It has been decreed..\n" message = "It has been decreed..\n"
found = False found = False
for i in ogmsg: for i in range(len(ogmsg)):
if i.startswith("~") or i.startswith("\~"): if ogmsg[i].startswith("~"):
message = message + i + "\n" message = message + i + "\n"
continue continue
if not found: if not found:
i = "~~" + i + "~~" newmsg = "~~" + ogmsg[i] + "~~"
turnping = i.split("<")[1].split(">")[0] turnping = ogmsg[i+1].split("<")[1].split(">")[0]
found = True found = True
message = message + i + "\n" message = message + newmsg + "\n"
continue continue
else: else:
message = message + i + "\n" message = message + ogmsg[i] + "\n"
print(interaction.user.guild_permissions) print(interaction.user.guild_permissions)
await interaction.response.edit_message(content=message) await interaction.response.edit_message(content=message)
await interaction.followup.send(f"<{turnping}> it is now your turn!") await interaction.followup.send(f"<{turnping}> it is now your turn!")