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

Implement Fuzzy String Searching for the ;division Command #5

Open
aryker opened this issue Sep 16, 2019 · 1 comment
Open

Implement Fuzzy String Searching for the ;division Command #5

aryker opened this issue Sep 16, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@aryker
Copy link
Member

aryker commented Sep 16, 2019

Currently, Flick only assigns a division if the argument provided with the ;division command matches the Discord role name for that division exactly. This has caused a bit of difficulty for some students trying to assign themselves to a division.

Implement fuzzy string searching so that Flick is more tolerant of typos and slight mismatches in these arguments (e.g. robotops vs. Robot Ops).

In addition, we should support a few alternate strings that match to these roles that people might enter as arguments to this command. For example:

  • "Public Relations" = "PR"
  • "Programming" = "Programming/Electrical"
  • "Electrical" = "Programming/Electrical"
  • "Information Technology" = "IT"
  • "Robot Operations" = "Robot Ops"
  • "Mechanical" = "Robot Ops"
@ralsei ralsei self-assigned this Sep 16, 2019
@ralsei ralsei added the enhancement New feature or request label Sep 16, 2019
@ralsei
Copy link

ralsei commented Nov 28, 2019

This was half-solved with e8acc73, but it doesn't include the alternate strings stuffs.
That'll probably require me to hard-code a list of divisions in config.yaml. I'm not complaining, since that actually makes the code simpler, but whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants