__init__.py 693 B

1234567891011121314151617181920212223242526
  1. from ..types import CommandConfiguration
  2. from .as_command import as_command, decorated_commands
  3. from .on_event import on_startup, on_shutdown, decorated_startup, decorated_shutdown
  4. from .initialize_data import initialize_data
  5. from .error_handling import with_failure_handling
  6. __all__ = [
  7. "as_command",
  8. "on_startup",
  9. "on_shutdown",
  10. "initialize_data",
  11. "with_failure_handling",
  12. "get_command_config",
  13. ]
  14. def get_command_config() -> CommandConfiguration:
  15. return CommandConfiguration(
  16. commands=decorated_commands,
  17. call_and_response={},
  18. aliases={},
  19. bangs=(),
  20. startup=decorated_startup,
  21. shutdown=decorated_shutdown,
  22. )