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

"Christmas tree" holiday reaction reacts to just "tree" #1403

Open
5 of 6 tasks
Anonymous4045 opened this issue Dec 2, 2023 · 1 comment · May be fixed by #1404
Open
5 of 6 tasks

"Christmas tree" holiday reaction reacts to just "tree" #1403

Anonymous4045 opened this issue Dec 2, 2023 · 1 comment · May be fixed by #1404
Labels
type: bug Something isn't working

Comments

@Anonymous4045
Copy link

Description

Certain links, specifically ones with ../tree/.., are reacted to with Christmas trees.

Steps to Reproduce

Send a link to a GitHub directory in a channel where the bot reacts.

Expected Behaviour

The bot to... not do that.

Actual Behaviour

IMG_0836

Known Impacted Platforms

  • Web
  • Desktop
  • Android App
  • iOS App

Possible Solutions

Exclude links from being parsed for keywords.

Additional Details

Would you like to implement a fix?

Note: For high-priority or critical bugs, fixes may be implemented by staff.

  • I'd like to implement the bug fix
  • Anyone can implement the bug fix
@Anonymous4045 Anonymous4045 added the type: bug Something isn't working label Dec 2, 2023
@shenanigansd
Copy link
Member

shenanigansd commented Dec 2, 2023

Here is the code in question:

"christmas tree": Trigger(r"\b((christ|x)mas|tree)\b", ["\U0001F384"]),

It's matching on christams|tree, so it will match on every tree, regardless of it's festivity. It'll even match on the Grinch's trees! This is obviously extremely worrisome, we don't want the Grinch anywhere near our festivities!! This is a MUST FIX issue!!!

@shenanigansd shenanigansd changed the title Festive reactions on links "Christmas tree" holiday reaction reacts to just "tree" Dec 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants