Araeynn commited on
Commit
73e5e45
·
verified ·
1 Parent(s): b6a3952

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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()