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

Plugin: maimai猜歌小游戏 #3317

Open
1 task
apshuang opened this issue Feb 21, 2025 · 13 comments · May be fixed by #3318
Open
1 task

Plugin: maimai猜歌小游戏 #3317

apshuang opened this issue Feb 21, 2025 · 13 comments · May be fixed by #3318
Labels
Plugin Publish Plugin Publish Publish things to store

Comments

@apshuang
Copy link

apshuang commented Feb 21, 2025

PyPI 项目名

nonebot-plugin-guess-song

插件 import 包名

nonebot_plugin_guess_song

标签

[{"label":"maimai","color":"#17bcff"},{"label":"音游","color":"#ff9122"},{"label":"猜歌","color":"#ff2e5c"}]

插件配置项

插件测试

  • 如需重新运行插件测试,请勾选左侧勾选框
@apshuang apshuang added Plugin Publish Plugin Publish Publish things to store labels Feb 21, 2025
@noneflow
Copy link
Contributor

noneflow bot commented Feb 21, 2025

📃 商店发布检查结果

Plugin: maimai猜歌小游戏

✅ 所有测试通过,一切准备就绪!

详情
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 项目 nonebot-plugin-guess-song 已发布至 PyPI。
  • ✅ 标签: maimai-#17bcff, 音游-#ff9122, 猜歌-#ff2e5c。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.onebot.v11。
  • ✅ 插件 加载测试 通过。
  • ✅ 版本号: 1.1.5。
  • ✅ 发布时间:2025-02-26 19:09:34 CST。

  • 💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。
    💡 当插件加载测试失败时,请发布新版本后勾选插件测试勾选框重新运行插件测试。

    ♻️ 评论已更新至最新检查结果

    💪 Powered by NoneFlow

    @apshuang
    Copy link
    Author

    根据自动测试的报错RequiredDependencyException: zlib,似乎是缺失了zlib这个库?
    我查询了一下,zlib似乎是系统级的库,我添加到pyproject.toml的dependencies中似乎也无济于事?
    麻烦各位大佬给出建议,感谢!

    Copy link
    Contributor

    NCBM commented Feb 21, 2025

    1. 可以更新更高更合适版本的依赖(如 Pillow>=10 等)以避免从源码构建
    2. 资源目录应为可选配置项且应该使用 nonebot-plugin-localstore 进行内部管理

    Copy link
    Contributor

    请使用nonebot-plugin-localstore 进行插件文件管理

    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-guess-song Plugin: GuessLetter Feb 21, 2025
    noneflow bot pushed a commit that referenced this issue Feb 21, 2025
    @noneflow noneflow bot linked a pull request Feb 21, 2025 that will close this issue
    @apshuang
    Copy link
    Author

    1、已修改pyproject.toml中的部分依赖项("pillow>=11.1.0")
    2、使用了 nonebot-plugin-localstore 插件进行内部管理,并解除了对资源的强绑定(没有资源仍可以加载插件,只是在使用功能的时候会无法使用,并发出消息提醒bot主去下载资源)

    @noneflow noneflow bot changed the title Plugin: GuessLetter Plugin: nonebot-plugin-guess-song Feb 21, 2025
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-guess-song Plugin: GuessLetter Feb 22, 2025
    @apshuang
    Copy link
    Author

    修改了一下插件的metadata,仅更改了插件名字为“maimai猜歌小游戏”

    @noneflow noneflow bot changed the title Plugin: GuessLetter Plugin: maimai猜歌小游戏 Feb 22, 2025
    @KomoriDev
    Copy link
    Contributor

    1. require("nonebot_plugin_localstore")__init__.py 写一遍即可,config.py 可以直接用不需要再次 require
    2. 插件貌似只支持 OneBot V11,但是 PluginMetaData 未填写 supported_adapters

    @apshuang
    Copy link
    Author

    apshuang commented Feb 22, 2025

    1、经测试,在__init__.py中进行require("nonebot_plugin_localstore")无法正常加载插件,故改为仅在config.py中进行require,而删去__init__.pyrequire(因为插件仅在`config.py'需要用到该插件)

    2、已修改元数据中supported_adapters的描述

    @yanyongyu
    Copy link
    Member

    插件依赖 moviepy 锁死了版本,请使用范围限制;apscheduler 插件未限制版本;nonebot2 版本应为 2.3.0+;localstore 版本应为 0.7.0+。

    require 不需要获取返回值,请删除。

    @apshuang
    Copy link
    Author

    插件依赖 moviepy 锁死了版本,请使用范围限制;apscheduler 插件未限制版本;nonebot2 版本应为 2.3.0+;localstore 版本应为 0.7.0+。

    require 不需要获取返回值,请删除。

    1、已删除require的返回值
    2、插件moviepy是因为检验过某些版本(2.0.0及以上,以及1.0.1及以下其中的某些我检验过)无法使用,所以锁定一个可以使用的版本;apscheduler插件已改为限制>=0.5.0、nonebot2已改为限制>=2.3.0,localstore插件已改为限制>=0.7.0

    @apshuang
    Copy link
    Author

    在v1.1.4版本中,修改了nonebot_plugin_guess_song/libraries/guess_song_chart.py中的部分代码,修复了一个bug(详见a44a022c06062381e3c1128c9a7e8130e62ba548对应的commit)

    @yanyongyu
    Copy link
    Member

    无法使用建议你检查你的使用方式以及其文档,如果你限制一个版本会导致别人可能无法安装你的插件。

    @apshuang
    Copy link
    Author

    无法使用建议你检查你的使用方式以及其文档,如果你限制一个版本会导致别人可能无法安装你的插件。

    经仔细地检查,已调整moviepy依赖的版本范围为"moviepy>=1.0.2,<=1.0.3"

    moviepy各版本考查说明:

    • 其中2.0.0及以上的版本太新(2024.11.20才发布2.0.0),发布时间不长、可能不稳定,且很多特性有明显修改,使用者少;
    • 其中0.2.3.5及以下版本太老旧(早于2018.6.1),很多特性已经过时,甚至可能无法适配python>=3.8的版本;
    • 而1.0大版本中,1.0.0和1.0.1版本中,存在”保存的视频没有声音“的问题,所以相信很少人使用;
    • 最后,1.0.3版本是1.0版本中最新的版本,也是距离下一次正式版更新最长时间的版本(2020.5.8-2024.11.20),所以有理由相信1.0.3版本是一个得到相当多开发者使用和支持的版本
    • 综上,我们推荐使用1.0.3版本(在readme中提及),并兼容1.0.2版本

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    Plugin Publish Plugin Publish Publish things to store
    Development

    Successfully merging a pull request may close this issue.

    5 participants