Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

Release v0.6.0 & 重构说明 #20

Merged
merged 13 commits into from
Nov 27, 2022
Merged

Release v0.6.0 & 重构说明 #20

merged 13 commits into from
Nov 27, 2022

Conversation

bsdayo
Copy link
Member

@bsdayo bsdayo commented Nov 27, 2022

Flandre 在经过一系列的迭代,已经发展到了 v0.6.0 版本。但项目的架构方面目前有一些问题:

  • Flandre.Core 名不符实,虽名为 Core,但并没有体现出“核心”该有的小体量,而是大包大揽,囊括了指令、插件等种种功能。这导致可扩展性堪忧,同时也难以作为小模块嵌入已有项目中。
  • Flandre 目前仍未实现一些现代框架的特性,例如依赖注入等,同时难以接入第三方轮子,例如日志。

目前打算拆分现在的 Flandre.Core 包,转换为两个分离的组件:Flandre.CoreFlandre.Framework

  • Flandre.Core 将仅包含:适配器 (Adapter) 部分、机器人 (Bot) 部分、消息相关 (MessageSegment...)、模型相关 (User, Guild...) 等通用组件,用户需要手动通过事件方式与 Bot 进行交互。
  • Flandre.Framework 将包含:与 Core 模块交互;完整的指令、插件系统;多机器人实例管理;依赖注入;基于 Microsoft.Extensions.Logging 统一化日志管理等。

@bsdayo bsdayo added feature 特性建议 area-core Flandre.Core 相关 plan labels Nov 27, 2022
@bsdayo bsdayo self-assigned this Nov 27, 2022
@bsdayo bsdayo merged commit 535b229 into main Nov 27, 2022
@bsdayo bsdayo added this to the 0.6 milestone Feb 21, 2023
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
area-core Flandre.Core 相关 feature 特性建议
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant