Open zhangchuck opened 4 years ago
Basic substring was implemented here: https://github.com/play4honor/discord_quote_bot/blob/f8ae4156703cb34eee5853025085c1d4785896b4/discord_quote/discord_quote/discord_quote.py#L874-L881
Leaving this open for further improvements.
Improve the functionality of this command:
https://github.com/play4honor/discord_quote_bot/blob/f02829600d7efb0e6b9af2a12f1fb36a57b34412/discord_quote/discord_quote/discord_quote.py#L805-L842
@DoubleSec wanted levenshtein distance.
If you're okay with a python solution, you can just work by filtering
all_aliases
to formmatching_aliases
(see the comment).