Lifecycle stages
1
Installation
Plugin is added to bot via
addPlugin()2
Configuration
Plugin receives configuration and dependencies
3
Registration
Plugin handlers are registered
4
Active
Plugin handles events and messages
Handler execution
Plugin handlers execute before bot handlers:- Plugin message handlers
- Bot message handlers
- Plugin event handlers
- Bot event handlers