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

Milestone: Release v1.0 #113

Open
Ailitonia opened this issue Sep 16, 2022 · 5 comments
Open

Milestone: Release v1.0 #113

Ailitonia opened this issue Sep 16, 2022 · 5 comments
Assignees
Labels
breaking A change that caused one or more modules isn't working enhancement New feature or request
Milestone

Comments

@Ailitonia
Copy link
Owner

目前 v0.9 版本已基本稳定,接下可能将不会有大的更新,并将进入下一个阶段的重构,包括:

  • 数据库重构
  • GUI界面
  • *官方频道机器人适配
  • *其他机器人协议适配

本次重构的目标是与 onebot 协议及 go-cqhttp 解耦,实现支持多协议的机器人

@Ailitonia Ailitonia added the enhancement New feature or request label Sep 16, 2022
@Ailitonia Ailitonia added this to the 1.0 milestone Sep 16, 2022
@Ailitonia Ailitonia self-assigned this Sep 16, 2022
@Ailitonia Ailitonia pinned this issue Sep 16, 2022
@Ailitonia
Copy link
Owner Author

本次重构的目标是与 onebot 协议及 go-cqhttp 解耦,实现支持多协议的机器人

反正 flag 先立这里了,能不能写出来另说

@Ailitonia
Copy link
Owner Author

Ailitonia commented Dec 1, 2022

目前进度

  • 数据库重构: 100% | 已完成✅, 将数据库操作改造为依赖注入模式, 数据库结构大改, 旧版本需要通过迁移工具进行迁移(部分非关键数据会被舍弃)

已知缺陷

  • 数据库 Bot 表中的 self_id 字段(即 bot 自身 id)为 unique 索引, 可能导致不同类型(适配器)的 Bot self_id 相同而引发不可预见的异常, 考虑到当前阶段计划中仅考虑适配 OneBot 以及 Telegram 两类适配器, 该缺陷可认为不会产生影响, 如果在今后可能会加入更多适配器支持的情况下再考虑解决。(不过考虑到 Nonebot2 在 Drive 层对于 Bot 的判断也是只通过 self_id 进行, 该缺陷在可预见的时间内可能没有办法得到有效修复)

@Ailitonia
Copy link
Owner Author

Ailitonia commented Dec 9, 2022

目前进度

  • 基础服务重构: 100% | 已完成✅, 多 Adapter 已适配: Onebot V11, QQ, Telegram, Console
  • 插件重构: 100% | 已完成✅, 部分插件存在各种 BUG, 本次重构不做处理, 待重构完成发版后再进行修复

Breaking Change

  • 多 Adapter 适配需要一个统一中间层统一消息处理和 API 调用, 实现参考:saa, all4one | 已完成✅

@Ailitonia Ailitonia added the breaking A change that caused one or more modules isn't working label Dec 12, 2022
@Ailitonia
Copy link
Owner Author

Ailitonia commented May 6, 2024

目前进度

  • 旧版本迁移工具: 100% | 部分旧版本数据将被舍弃
  • 新版本文档: 80% | 依然使用 Github 自带的 wiki 编写

@Ailitonia
Copy link
Owner Author

已更新迁移说明(v0.9.2-to-v1.0.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking A change that caused one or more modules isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant