Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重构事件监听机制 #109

Closed
yyuueexxiinngg opened this issue Nov 16, 2020 · 0 comments
Closed

重构事件监听机制 #109

yyuueexxiinngg opened this issue Nov 16, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@yyuueexxiinngg
Copy link
Owner

目前每个模块独自订阅并处理事件, 导致同时启用多个模块后重复处理事件

如启用WebSockets ServerHTTP上报服务后, 事件广播后BotEvent.toCQDTO.toJson()以及EventFilter.eval()会被调用两次

考虑在插件入口订阅一次来自mirai的事件, 处理完成后通过自建事件分发广播给各个模块

@yyuueexxiinngg yyuueexxiinngg added the enhancement New feature or request label Nov 16, 2020
@yyuueexxiinngg yyuueexxiinngg pinned this issue Nov 16, 2020
@yyuueexxiinngg yyuueexxiinngg unpinned this issue Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant