Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #4 from Huyu2239/hotfix/help.py
Browse files Browse the repository at this point in the history
fix help.py
  • Loading branch information
Huyu2239 authored Apr 10, 2021
2 parents edc9b98 + 16df83d commit a17cf51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cogs/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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:
Expand Down

0 comments on commit a17cf51

Please sign in to comment.