From 7858e92852125564c0820bcd01f39d31b630f7b4 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 27 Dec 2020 03:00:29 -0500 Subject: [PATCH] have bot remove reactions to page flipping --- the_prestige.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/the_prestige.py b/the_prestige.py index 081a93d..22e1c43 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -641,8 +641,10 @@ async def team_pages(msg, all_teams, search_term=None): react, user = await client.wait_for('reaction_add', timeout=60.0, check=react_check) if react.emoji == "◀" and current_page > 0: current_page -= 1 + react.remove(user) elif react.emoji == "▶" and current_page < (page_max-1): current_page += 1 + react.remove(user) await teams_list.edit(embed=pages[current_page]) except asyncio.TimeoutError: return