Araeynn commited on
Commit
85d7fd8
1 Parent(s): 119ba54

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -145,13 +145,14 @@ async def on_disconnect():
145
  async def on_message(message):
146
  if message.content == "--help":
147
  def check(reaction, user):
148
- return reaction.message.id == msg.id and user == msg.author #msg.id is the id of the embed sent by the bot.
149
-
150
  page = 0
151
  titles = ["hoi", "hoi2"]
152
  pages = ["hi", "hi2"]
153
  embed = discord.Embed(title=titles[page], description=pages[page]
154
  msg = await message.reply(embed=embed)
 
 
155
  while True:
156
  try:
157
  reaction, _ = await bot.wait_for('reaction_add', timeout= 20.0, check=check)
 
145
  async def on_message(message):
146
  if message.content == "--help":
147
  def check(reaction, user):
148
+ return reaction.message.id == msg.id and user == message.author
 
149
  page = 0
150
  titles = ["hoi", "hoi2"]
151
  pages = ["hi", "hi2"]
152
  embed = discord.Embed(title=titles[page], description=pages[page]
153
  msg = await message.reply(embed=embed)
154
+ msg.add_reaction("◀️")
155
+ msg.add_reaction("▶️")
156
  while True:
157
  try:
158
  reaction, _ = await bot.wait_for('reaction_add', timeout= 20.0, check=check)