Skip to content

Conversation

ssaini123456
Copy link
Contributor

The following code checks for a highlighted line github link and gives the user or anyone else the option to display the code within an ANSI-Formatted embed

Copy link
Collaborator

@AbstractUmbra AbstractUmbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey!

Thanks for the PR. Just a few nitpicks and changes requested!

* Removed the bare exception and instead return None upon IndexError

* Wrap the embed sending and reaction listening in a try/catch block & added a timeout variable set to 10

* Clear reactions to that message upon TimeoutError
Copy link
Collaborator

@AbstractUmbra AbstractUmbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 more nitpicks!

@AbstractUmbra AbstractUmbra merged commit de3f7a4 into PythonistaGuild:main Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants