Changelog

3.0.0

This is a breaking release, as omnibot_receiver.router.OmnibotRouter is now a generic routing class that can route events to instances of omnibot_receiver.router.OmnibotMessageRouter or omnibot_receiver.router.OmnibotInteractiveRouter.

2.0.0

  • Move default and help match types to separate functions, set_default and set_help. This simplifies the code and makes it clearer what’s happening, since it’s not necessary to send unused args into the decorators.
  • Add custom exceptions RouteAlreadyDefinedError and NoMatchedRouteError, rather than returning ValueError when failing. RouteAlreadyDefinedError is used when a help or default decorator is set more than once. NoMatchedRouteError is used when a message is received that has no matching routes and the router was configured not to fall back to help documentation.

1.1.0

1.0.0

0.1.0