Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -260,6 +260,7 @@ async def on_message(message):
|
|
260 |
titles = ["""--setup""", """--reset"""]
|
261 |
pages = [setupCommand, "hi2"]
|
262 |
embed = discord.Embed(title=titles[page], description=pages[page])
|
|
|
263 |
msg = await message.reply(embed=embed)
|
264 |
await msg.add_reaction("◀️")
|
265 |
await msg.add_reaction("▶️")
|
@@ -277,8 +278,9 @@ async def on_message(message):
|
|
277 |
embed.set_footer(text=f"Page {page + 1} of {len(pages)}")
|
278 |
await msg.edit(embed=embed)
|
279 |
except asyncio.TimeoutError:
|
280 |
-
|
281 |
-
|
|
|
282 |
for user in message.mentions:
|
283 |
if user.bot:
|
284 |
message.content = message.content.replace(f"<@{user.id}>",
|
|
|
260 |
titles = ["""--setup""", """--reset"""]
|
261 |
pages = [setupCommand, "hi2"]
|
262 |
embed = discord.Embed(title=titles[page], description=pages[page])
|
263 |
+
embed.set_footer(text=f"Page {page + 1} of {len(pages)}")
|
264 |
msg = await message.reply(embed=embed)
|
265 |
await msg.add_reaction("◀️")
|
266 |
await msg.add_reaction("▶️")
|
|
|
278 |
embed.set_footer(text=f"Page {page + 1} of {len(pages)}")
|
279 |
await msg.edit(embed=embed)
|
280 |
except asyncio.TimeoutError:
|
281 |
+
await msg.remove_reaction("◀️")
|
282 |
+
await msg.remove_reaction("▶️")
|
283 |
+
return 0
|
284 |
for user in message.mentions:
|
285 |
if user.bot:
|
286 |
message.content = message.content.replace(f"<@{user.id}>",
|