Skip to content

TASK: Add laugh method (#11)#122

Merged
TheGittyPerson merged 4 commits into
TheGittyPerson:mainfrom
akashhg2007:feature/laugh-method
Jun 21, 2026
Merged

TASK: Add laugh method (#11)#122
TheGittyPerson merged 4 commits into
TheGittyPerson:mainfrom
akashhg2007:feature/laugh-method

Conversation

@akashhg2007

@akashhg2007 akashhg2007 commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Added a new laugh method to the Person class.

Features:

  • Supports 4 laugh types: light, tears, loud, rofl
  • Random laugh if no type specified
  • Follows same pattern as existing smile() and cry() methods
  • Includes type hints and docstring

@github-actions github-actions Bot added the task This is a task issue / PR completing a task label Jun 20, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks for opening your first PR on this repository! Make sure you've read our contributing guidelines — it's very important to us.
Key things to remember when contributing to this repo:

  • Avoid touching others' code when possible
  • Rebase > Merge; When updating your PR branch, always use a rebase and resolve conflicts
  • Try to follow PEP 8
  • Avoid using AI to code, comments, or issue/PR descriptions

@TheGittyPerson

Copy link
Copy Markdown
Owner

Thanks for the contribution! Will review this tomorrow

@akashhg2007

Copy link
Copy Markdown
Contributor Author

Thank you sir

@TheGittyPerson TheGittyPerson added the feature New feature or enhancement label Jun 20, 2026
@TheGittyPerson TheGittyPerson self-requested a review June 21, 2026 03:15
TheGittyPerson

This comment was marked as outdated.

@TheGittyPerson TheGittyPerson self-requested a review June 21, 2026 03:17

@TheGittyPerson TheGittyPerson left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Great job! Your method is very well written. Here's what you need to fix before we merge

Comment thread theperson/person.py Outdated
Comment on lines +432 to +435
"small": "\U0001F642", # 🙂 slightly smiling face
"smile": "\U0001F60A", # 😊 smiling face, smiling eyes
"grin": "\U0001F601", # 😁 grinning face with smiling eyes
"wide": "\U0001F604", # 😄 open mouth with smiling eyes
"small": "\U0001F642", # dYT, slightly smiling face
"smile": "\U0001F60A", # dY~S smiling face, smiling eyes
"grin": "\U0001F601", # dY~? grinning face with smiling eyes
"wide": "\U0001F604", # dY~, open mouth with smiling eyes

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

What's this?

Comment thread theperson/person.py Outdated
"""
laughing_emojis = {
"light": "\U0001F606", # 😆 grinning squinting face
"tears": "\U0001F923", # 🤣 rolling on the floor laughing

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

You accidentally used the same one as rofl

@akashhg2007

Copy link
Copy Markdown
Contributor Author

Thanks for the review! I've fixed the duplicate emoji issue - each laugh type now has a unique emoji. Let me know if there's anything else to change.

This appeared to be some encoding issue

Signed-off-by: Morpheus <167074500+thegittyperson@users.noreply.github.com>

@TheGittyPerson TheGittyPerson left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Pushed a commit to fix an unintentional change. Yay we can merge now :D

@TheGittyPerson TheGittyPerson merged commit 27429d7 into TheGittyPerson:main Jun 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or enhancement task This is a task issue / PR completing a task

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants