Open myedibleenso opened 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.
lingbot
next next
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:
next
next nlprg
nlprg next
nlprg next next
next next next
previous
last
previous nlprg
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.
Made a new feature branch. Will discuss with @jdukatz soon.
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:
next
next nlprg
next next
nlprg next
next nlprg
nlprg next next
next next next
previous
last
would probably be better thanprevious
)previous nlprg
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.