To handle the split ( #2 ) and to still make things work as wanted in the deployed Duga, and to support other usages, create some events that can be used to hook into duga-core:
[x] Pre post event - change or filter messages
[ ] Post post event - get information about successful posts
[ ] Exception event - handle exceptions during posting
[x] Start event - after startup
[x] Stop event - on shutdown
[ ] Pre Login event - when bot is logging in
For simplicity, handlers should be executed in the order that they are added
To handle the split ( #2 ) and to still make things work as wanted in the deployed Duga, and to support other usages, create some events that can be used to hook into duga-core:
For simplicity, handlers should be executed in the order that they are added