pabo / lilbub

A slackbot for hijinx
1 stars 2 forks source link

"Surface" triggers the "surf" autoreply #3

Closed handonam closed 1 year ago

handonam commented 1 year ago

Good Day Sir.

It has come to my immediate attention that, while having a monumentally important discussion about matters pertaining to irrelevant matters, your lilbub auto reply mechanism had failed to distinguish between the words "Surf" and "Surface".

As exhibited from this excerpt of a textual conversation that had taken place on November 7th, 2022 at 9:45am (PST, please note the recent time change), your auto reply bot triggered on this message:

Elon's tweet of "Being attacked by both right & left simultaneously is a good sign" kinda seems like there's a lot more than just on-the-surface twitter conversation.

Henceforth, your meticulously designed lilbub chat bot had exhibited a programatic bug.

Lil Bub APP [09:45] o of t of OO E or ooOO OO ah

Upon further inspection of your program, I have discovered this Regular Expression that clues in to the faulty bug:

  {
    pattern: /\bsurf/i,
    response: "o of t of OO E or ooOO OO ah",
    perchance: 100,
  },

It appears that this Regular Expression did not include a word boundary. Please refer to this attached documentation for further understanding.

If there is a more improved solution, please recommend further.

On behalf of the IPU organization, we request that you perform a change on this Regular Expression.

Thank you for your time, Hanam

pabo commented 1 year ago

We encourage you to submit a Pull Request for this issue! It could be the perfect "starter project" for you to learn the basics of software engineering and related processes. Even if you think it might be beyond your current abilities, we encourage you to try!

pabo commented 1 year ago

Dear esteemed contributor,

Thank you for your recent Pull Request submission. We appreciate your dedication to improving our project and contributing to the open source community.

However, we would like to inform you that our team has recently implemented a policy regarding the management of older issues. As part of this policy, any issues that have been open for longer than a specified time frame will be automatically closed to ensure that our team can focus on more pressing matters.

In accordance with this policy, we regret to inform you that your Pull Request will be closed as the associated issue has been open for longer than 90 days. We encourage you to resubmit your Pull Request for a more recent issue or create a new issue for your proposed changes.

Thank you again for your contributions, and we look forward to continuing our collaboration with you in the future.

Please note that the above comment was created by ChatGPT