Skip to content

Commit

Permalink
Update scp.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BenCos17 committed Nov 16, 2024
1 parent 86a3a63 commit 9bc9dbf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scp/scp.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,11 @@ async def scp_info(self, ctx, scp_number: str):
# Send the first chunk
current_chunk = 0
message = await ctx.send(f"**{title}**\n{chunks[current_chunk]}\n{read_more_link}")
await message.add_reaction("➡️") # Add a reaction for next chunk

# Add reactions in the correct order
if len(chunks) > 1:
await message.add_reaction("⬅️") # Add a reaction for previous chunk if there are multiple chunks
await message.add_reaction("➡️") # Add next chunk reaction first
await message.add_reaction("⬅️") # Add previous chunk reaction second

# Handle reactions for navigation
def check(reaction, user):
Expand Down

0 comments on commit 9bc9dbf

Please sign in to comment.