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

Move to certain category if a keyword is met #649

Closed
TheFatalKiller opened this issue Nov 25, 2019 · 2 comments
Closed

Move to certain category if a keyword is met #649

TheFatalKiller opened this issue Nov 25, 2019 · 2 comments
Labels

Comments

@TheFatalKiller
Copy link

I suggest that there should be a command where you can specify a key word and specify what category the thread will move to if the key word is met. For example if someone started a thread saying “I would like to partner”, or “partner?” It would go to the partner category automatically.
edit: I also think it would be a good idea if the key word is met and once it’s moved to the category a certain role would be mentioned (which the user has set up)

@Taaku18
Copy link
Collaborator

Taaku18 commented Jan 9, 2020

What type of rules should it implement? Should it just be a straight “is the keyword present” check?

For example: If “partner” is present, will “partnership” and “partners” be matched?

If so:

  1. Basic presence match.

If not, then we need to introduce word boundaries: here’s three ways we can do that:

  1. There must be a word boundary around the keyword. (limits so that “partnership” wouldn’t be matched for “partner”)

  2. Allow a custom escape (“\b”), for which when you encounter “\b” in your keyword, a word break is expected. (“\bpartner\b” will prevent “partnership” to be matched; allows more flexibility)

  3. Simply allow the use of Regex. (The maximum flexibility; however, most users wouldn’t know how to use it and become confused)






Apart from the previous, should multiple keywords all present, and/or any of the multiple keywords be present, be a feature?





Please note: commenting on GitHub Issues are open to everyone in the community, not only limited to the author and contributors. Feel free to discuss your thoughts below and vote!

@Taaku18 Taaku18 added the poll label Jan 9, 2020
@Taaku18 Taaku18 changed the title Certain category if a key word is met. [Reupload] Move to certain category if a keyword is met Jan 9, 2020
@github-actions
Copy link

This issue is stale because it has been open for 100 days with no activity. Remove stale label or comment or this will be closed in 5 days. Please do not un-stale this issue unless it carries significant contribution.

@github-actions github-actions bot added the Stale label Apr 19, 2020
@fourjr fourjr reopened this Nov 7, 2020
@fourjr fourjr added approved staged Staged for next version and removed poll labels Nov 10, 2020
@fourjr fourjr closed this as completed in 27afe7d Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants