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

重构插件加载器、BotContext、AnnotationMap 新增方法、修复部分 Bug #254

Merged
merged 15 commits into from
Jan 15, 2023

Conversation

crazywhalecc
Copy link
Member

@crazywhalecc crazywhalecc commented Jan 12, 2023

  • 重构 ZMPlugin 类,使用 Traits 分离
  • 新增 PluginMeta 对象用于格式化和规范化 zmplugin.json 的读取
  • 新增单个注解添加方法:AnnotationMap::addSingleAnnotation()
  • 优化 BotContext,使其支持继承
  • 修复 Windows 下按 Ctrl+C 无法停止的 Bug
  • 优化内置插件 onebot12-ban-other-ws,如果当前 WebSocketOpenEvent 设置了连接信息则忽略断开

@crazywhalecc crazywhalecc requested a review from sunxyw January 13, 2023 06:26
@crazywhalecc crazywhalecc changed the title 重构 ZMPlugin 的加载器 重构插件加载器、BotContext、AnnotationMap 新增方法、修复部分 Bug Jan 13, 2023
@crazywhalecc crazywhalecc added the improvement 对于现有代码或逻辑的改进 label Jan 13, 2023
@crazywhalecc crazywhalecc merged commit b0165e1 into main Jan 15, 2023
@crazywhalecc crazywhalecc deleted the plugin-meta-ng branch January 15, 2023 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement 对于现有代码或逻辑的改进
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants