theastropath / turbot

A Discord bot for tracking Animal Crossing: New Horizons turnip prices and fossil collections
MIT License
8 stars 1 forks source link

Support flexible preference names #168

Closed lexicalunit closed 4 years ago

lexicalunit commented 4 years ago

Too often someone tries to do:

!pref friendcode blah and gets the error that friendcode isn't a valid preference name.

We should make friendcode map to friend at least. Perhaps also code? Also they should be case insensitive.

Maybe we could even somehow detect things like: !pref Native Fruit orange and make that work. Like if the user uses the preference name as it appears in the !info embed then maybe it can detect that and work correctly?