diff --git a/gameutils.py b/gameutils.py index bd05065..ceba778 100644 --- a/gameutils.py +++ b/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!")