discord-csharp / Contacts

Your friendly neighborhood C# Discord server bot
MIT License
7 stars 3 forks source link

[FEATURE] Recallable memos #8

Closed jmazouri closed 7 years ago

jmazouri commented 7 years ago

The ability to create and edit "memos", which can be saved as keywords and recalled. Effectively the same as the "ahh" bot from the Discord.Net channel.

Potentially also keep track of how often each memo is recalled, and use that to fuzzy-match keywords as well.

khionu commented 7 years ago

I would recommend not doing fuzzy matching, unless, like R. Danny, you do it to provide suggestions if no match is found. Fuzzy matching can get quite weird, and I don't see it having much use unless for this.

Maybe do keyword searches for where the Levenshtein Distance is less than 2 or 3?

jmazouri commented 7 years ago

Right, it'd be to provide a list of options in case you make a typo / it can't find what keywork you're looking for. There's a number of implementations of it in this library, which could be tested for our specific use case.

https://fuzzystring.codeplex.com/

ObsidianMinor commented 7 years ago

Did done do