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

调整代码以支持miraiPlugin以外的使用方式 #9

Merged
merged 3 commits into from
May 31, 2022

Conversation

hundun000
Copy link
Collaborator

@hundun000 hundun000 commented May 31, 2022

关系整理

share包可脱离miraiPlugin使用,关系图见 #8 ,测试方式:运行example.SimpleUsage

BasePetData提供功能:选择模板,输入头像图片,生成图片。
PetData比起BasePetData额外提供功能:输入Member,自动得到头像图片,然后生成图片,自动发送生成图片。

PS: 感觉上述功能,处在名为data的类,不太符合,data类建议单纯管理数据。为了防止本次pr过于复杂,暂时不改。

BaseGifMaker提供功能:输入图片,制作gif
GifMaker比起BaseGifMaker额外提供功能:输入Member,自动得到头像图片,然后制作gif。

BaseImageMaker与ImageMaker同理。

其他改动

config移到'./config/xmmt.dituon.petpet/petpet.json',理由见这篇文档

为了让SimpleUsage能读取petpet.json,需要依赖kotlinx-serialization-json

@hundun000 hundun000 marked this pull request as ready for review May 31, 2022 06:53
@Dituon Dituon merged commit b8c1c3e into Dituon:main May 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants