Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -158,11 +158,11 @@ async def on_message(message):
|
|
158 |
reaction, _ = await bot.wait_for('reaction_add', timeout= 20.0, check=check)
|
159 |
if reaction.emoji == '◀️' and page > 0:
|
160 |
page -= 1
|
161 |
-
embed = discord.Embed(title=titles[page], description=pages[page]
|
162 |
await msg.edit(embed=embed)
|
163 |
if reaction.emoji == '▶️' and page < len(pages) -1:
|
164 |
page += 1
|
165 |
-
embed = discord.Embed(title=titles[page], description= pages[page]
|
166 |
await msg.edit(embed=embed)
|
167 |
except asyncio.TimeoutError:
|
168 |
await msg.delete()
|
|
|
158 |
reaction, _ = await bot.wait_for('reaction_add', timeout= 20.0, check=check)
|
159 |
if reaction.emoji == '◀️' and page > 0:
|
160 |
page -= 1
|
161 |
+
embed = discord.Embed(title=titles[page], description=pages[page])
|
162 |
await msg.edit(embed=embed)
|
163 |
if reaction.emoji == '▶️' and page < len(pages) -1:
|
164 |
page += 1
|
165 |
+
embed = discord.Embed(title=titles[page], description= pages[page])
|
166 |
await msg.edit(embed=embed)
|
167 |
except asyncio.TimeoutError:
|
168 |
await msg.delete()
|