Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taxon: match taxon of last observation in channel #25

Closed
synrg opened this issue Oct 7, 2019 · 2 comments
Closed

taxon: match taxon of last observation in channel #25

synrg opened this issue Oct 7, 2019 · 2 comments
Labels
enhancement New feature or request inat 🍃 iNaturalist cog

Comments

@synrg
Copy link
Collaborator

synrg commented Oct 7, 2019

Extend the query language to include a last qualifier to match the taxon of any http{s}:https://{www.}inaturalist(.org|.ca)/observations/# URL recently mentioned in channel. It could support by [user] to filter on the last observation mentioned by the specified Discord user (without @ so they're not pinged) or my last (equivalent last by me) to reference the requesting user's last observation mentioned. Finally, some qualifiers to skip over most recent would be good, e.g. [ordinal] last to count backwards from current, e.g. 2nd last, my 2nd last, or their / by them to skip requesting user's own. Perhaps if an ordinal is given, the actual last keyword could be optional. Support browsing higher in the taxonomy tree to link to an ancestor (e.g. [p]taxon last genus would show the genus matching the last observation or, [p]taxon last parent would show the immediate ancestor of the last observation). Again, the keyword last might be omitted if there is nothing in the query but a rank that is an ancestor of the last observation (instead of the usual "I don't understand"), e.g. [p]taxon family where "of the last observation" is implied.

Consider if last should include other taxon queries, e.g. someone types [p]taxon zono to match Zonotrichia and then [p]taxon last parent, or again with optional last understood by context, [p]taxon parent to show its immediate ancestor to family Passerellidae (New World Sparrows).

@synrg
Copy link
Collaborator Author

synrg commented Oct 7, 2019

To avoid cluttering the channel, if last refers to a previous taxon result that was made by the requesting user, it should by default replace the previous embed.

@synrg synrg self-assigned this Oct 11, 2019
@synrg synrg removed their assignment Dec 24, 2019
@synrg synrg added the inat 🍃 iNaturalist cog label Dec 29, 2019
@synrg synrg changed the title iNat taxon: match taxon of last observation in channel taxon: match taxon of last observation in channel Apr 10, 2020
@synrg
Copy link
Collaborator Author

synrg commented Jun 10, 2020

We went a different way with this, providing numerous subcommands of last to give equivalent functionality. parent is a completely different thing that belongs to a different issue. 2nd last is a concept we discussed and don't want to support (i.e. too confusing / no demand for it).

@synrg synrg closed this as completed Jun 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request inat 🍃 iNaturalist cog
Projects
None yet
Development

No branches or pull requests

1 participant