Trevortds / lingbot

A slack bot for the University of Arizona Human Language Technology students
1 stars 0 forks source link

Reference events multiple hops forward or backward in time #1

Open myedibleenso opened 7 years ago

myedibleenso commented 7 years ago

It would be useful if lingbot could retrieve events further forward in time (ex. next next), rather than just the closest upcoming event. Querying past events might also be useful.

This gist shows one way to add such support along with a unified event framework: https://gist.github.com/myedibleenso/dd92a747d6dfd45ff77e3073a27af97d

It has only been tested on the following queries:

In the command repetition in this implementation is unrestricted.

Anyway, I'm happy to go the PR route with this feature if there is interest.

Trevortds commented 7 years ago

Made a new feature branch. Will discuss with @jdukatz soon.