Skip to content
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

Added Regular Expression Checking #37 #40

Merged
merged 3 commits into from
Nov 17, 2023
Merged

Conversation

Sam2004-2
Copy link
Contributor

Morning bot PR

What does it do?
This pull request introduces changes to the on_message function in the Morning Bot. It utilizes regular expressions to check for good morning phrases, providing a more flexible and accurate detection.

Why is it needed?
The current implementation uses a predefined list for good morning phrases. By incorporating regular expressions, the bot can intelligently detect a wider range of morning greetings, making it more robust and adaptable to different languages and variations as well as leading to fewer erroneous reactions.

Is this change tracked by an issue?
Yes, #37

Acceptance Criteria

  • [✅] Implementation
  • [❌] Test Coverage
  • [❌ ] Change Reflected in Documentation?
  • [❌] CI/CD pipelines configured to accomodate change

@Sam2004-2
Copy link
Contributor Author

#37 This PR fixes issue

Copy link
Owner

@coillteoir coillteoir left a comment

Choose a reason for hiding this comment

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

Good work

@coillteoir coillteoir merged commit c0da5f2 into coillteoir:master Nov 17, 2023
2 checks passed
Sam2004-2 added a commit to Sam2004-2/MorningBot-Sam-Dev that referenced this pull request Nov 17, 2023
Changes to how messages are checked. Uses regex instead of literal string matching to add more expressive config

Co-authored-by: David <[email protected]>
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.

2 participants