-
-
Notifications
You must be signed in to change notification settings - Fork 40
fix(eight_ball): improve response formatting #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Reviewer's GuideRefactors the File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @jakobdylanc - I've reviewed your changes - here's some feedback:
- Extract the message‐box formatting (wrapping, borders, etc.) into a helper function to reduce inline complexity and duplication.
- Replace the hardcoded
width = 30with a named constant or parameter so it’s easier to adjust in the future. - Dedent or use raw multiline strings for the ASCII art to avoid accidental indentation that could misalign the art.
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
shortens question if >120 instead of not responding, and wraps response with a width of 30
|
Please move all constants (like the width value) into our constants file |
Done. |
HikariNee
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested on my local machine, works well.
before:

after:
shortened question example:
(input:
All Things Linux is a 501(c)(3) non-profit organization with a mission to empower the Linux ecosystem through education, collaboration, and support.)Summary by Sourcery
Improve eight_ball command’s message styling by wrapping responses to a fixed width, shortening overly long questions instead of rejecting them, and unifying ASCII framing for both cow and default modes.
Enhancements: