AndyReifman / ArseneWenger

1 stars 12 forks source link

Restrict accepted commands #16

Closed AndyReifman closed 3 years ago

AndyReifman commented 3 years ago

Currently the bot catches commands by just checking if a string starts with a keyword but ignores anything else.

Need to update the script to only match the exact phrase. Will probably need to include plural versions as well.

AndyReifman commented 3 years ago

Fuzzy matching has been in use for about 2 weeks now. It's okay but too lenient and realistically isn't needed for a simple problem like this. I expect users to be able to spell single words successfully. I think I'll change it to just use simple regex for allowing optional plurals.