From 16df83d9fd4936a39762dc9a57d32afdeb4f59b0 Mon Sep 17 00:00:00 2001 From: Huyu2239 Date: Sat, 10 Apr 2021 23:02:09 +0900 Subject: [PATCH] fix help.py --- cogs/help.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cogs/help.py b/cogs/help.py index 0a2be4e..8ddbf84 100644 --- a/cogs/help.py +++ b/cogs/help.py @@ -69,7 +69,6 @@ async def slash_say(self, ctx: SlashContext): help_msg = await ctx.send(embed=self.help_em[page]) emoji = '➡' await help_msg.add_reaction(emoji) - await help_msg.add_reaction(emoji) while True: def reaction_check(reaction, user): if reaction.message.id == help_msg.id \ @@ -84,7 +83,7 @@ def reaction_check(reaction, user): await help_msg.remove_reaction(emoji, self.bot.user) return # await help_msg.remove_reaction(emoji, user) - if page == len(self.em): + if page == len(self.em) - 1: # 最大の時は最初に page = 0 else: