Spaces:
Running
Running
Update app.py
Browse files
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 ==
|
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)
|