Skip to content

Lifecycle events#35

Draft
PenguinBoi12 wants to merge 1 commit intomainfrom
lifecycle-events
Draft

Lifecycle events#35
PenguinBoi12 wants to merge 1 commit intomainfrom
lifecycle-events

Conversation

@PenguinBoi12
Copy link
Contributor

Add a hook decorator and supporting infrastructure to register lifecycle event handlers (e.g. on_ready, on_error, on_command). Splits the existing _dispatch method into a generic lifecycle dispatcher and a Matrix-specific event dispatcher, and ensures hook handlers are properly propagated when loading extensions.

Multiple handlers per lifecycle event are supported and fired in registration order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant