dronefly-garden / dronefly

Red Discord Bot V3 cogs for naturalists.
Other
16 stars 3 forks source link

place/project: Show abbreviation, if defined #143

Closed synrg closed 2 years ago

synrg commented 3 years ago

Currently the ,place and ,project commands search for the supplied argument text and then just show the link to the first matching place/project. Similarly, ,s place and ,s project only show project names in the list of matching places.

The idea is to match any place or project id# against the place/project abbreviation tables and show any matching abbreviation(s) in the output of both of kinds of command. Otherwise, it can be very tedious to find abbreviations that have already been defined!

synrg commented 2 years ago

As of a06cf055ad6b8f9bd6dec7e898231e7302fa0421 the abbreviation is output for ,place and ,project displays, and when the full place or project record is displayed by selecting it from ,s place and ,s project displays.

I considered also including the abbreviation as a column in the ,s place and ,s project matches, but that's extra complexity and extra space taken up in the results that most of the time will be undefined. I don't think it's worth it.