dronefly-garden / dronefly

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

obs: when observation(s) not found, describe the search fully #124

Closed synrg closed 4 years ago

synrg commented 4 years ago

When observations are not found (,search obs or ,obs), it could be for a number of reasons. For example, a recent search I performed ,obs microdon by me, when i knew I had observed some, returned no results:

image

The issue here is that microdon is also a genus in Plantae:

image

If the error message had said it was searching for Genus Microdon (Catstailbush) and used the thumbnail in the error message, then it would've been easier to understand. That would be sufficiently distinct from Genus Microdon (Antflies) to understand the problem. There's an outside chance you'd hit something with neither a common name nor a default picture, but that should be relatively rare.

Additionally, you could've gotten the name of a person wrong, the name of a place wrong, the name of an annotation field, or annotation field value wrong ... to cover the case where any of these things matched the wrong thing (not just produced no results), it would be good to spell out the names of the things in the query fully.

synrg commented 4 years ago

Implemented in cec9f85fc913336cfd348bba111852c42b05d28f