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)
|
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!")
|
||||||
|
|
Loading…
Reference in a new issue