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

Refactor: 异步架构 #669

Merged
merged 90 commits into from
Feb 19, 2024
Merged

Refactor: 异步架构 #669

merged 90 commits into from
Feb 19, 2024

Conversation

RockChinQ
Copy link
Owner

@RockChinQ RockChinQ commented Jan 23, 2024

概述

  • 内部过程异步化
  • 移除线程池
  • 依赖注入风格保存运行时对象
  • 新的控制流
  • 移除:数据库、绘图命令、热重载功能
  • 添加 aiocqhttp、qq官方适配器

风险

直接调用代码操作主程序的插件将会出现异常

TODO

  • 修改命令文档
  • 编写用户文档
  • 编写架构文档
  • 数据库删除公告
  • 审计API调用
  • 完善可调用模型
  • 完善异常处理
  • chat前的上下文检查
  • 强制消息延迟
  • 启动时的更新检查
  • 启动时的公告检查
  • 检查插件事件均恢复正常
  • 请求时把conversation的相关信息放到query对象中以实现并发隔离
  • 恢复ratelimit
  • ratelimit应仅处理生效的请求(结合群消息响应规则)(作为单独stage?)
  • 恢复自定义命令权限
  • 接入aiocqhttp(记得写评论)
  • 测试自动化更新
  • 检查热重载正常

测试结果

  • 启动后未进行对话时,!list会 越界异常
  • !version 命令获取最新版本失败时导致命令失败
  • msg_source无法通过审计接口发给center

@RockChinQ
Copy link
Owner Author

RockChinQ commented Jan 28, 2024

命令改动

  • 删除命令:reload, delhst, draw, usage, cfg
  • 改动:resend现在仅回滚到最后一次请求前

@RockChinQ RockChinQ added the 文档 文档的修改或新增 label Jan 28, 2024
@RockChinQ RockChinQ marked this pull request as ready for review February 19, 2024 13:56
@RockChinQ RockChinQ merged commit 1bdc96f into master Feb 19, 2024
1 check failed
@RockChinQ RockChinQ deleted the feat/asyncio branch February 19, 2024 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IM: aiocqhttp onebot协议适配器相关 IM: qq-botpy QQ 官方 API 协议适配器相关 m: Platform 消息接收或发送的顶层操作相关issue或pr m: 会话管理 会话管理(对话内容)相关issue或pr 代码风格 代码风格或重构相关 改进 新功能或请求 文档 文档的修改或新增
Projects
None yet
1 participant