重构了后端,支持/textinput接口输入文字,支持对bilibili弹幕的读取,支持live2d模型说话时晃动 #43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
index.html里面加了关于说话摇晃的判定,通过虚拟鼠标指针在角色附近转来实现的,然后转的幅度现在调了一个感觉还比较稳定的。
main.py和server.py进行了比较大幅度的重构,其实本来没想变那么多的,但确实bug多了就开始让claude帮我猛猛改就变化的多了,以及删了一些参数注释(因为太长了就爆单轮输入上限了就改不动了),麻烦在考虑merge的时候多多包涵😭
加了一个danmakuAPI的文件夹,里面有读取b站指定直播间弹幕的功能,使用方法是在config里面最末尾加的bilibili参数配置好,然后python danmakuAPI/bilibili_liver.py 就行