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: nonebot_plugin_pjsekaihelper #3179

Open
1 task
Ant1816 opened this issue Dec 12, 2024 · 6 comments · May be fixed by #3180
Open
1 task

Plugin: nonebot_plugin_pjsekaihelper #3179

Ant1816 opened this issue Dec 12, 2024 · 6 comments · May be fixed by #3180
Labels
Plugin Publish Plugin Publish Publish things to store

Comments

@Ant1816
Copy link
Contributor

Ant1816 commented Dec 12, 2024

PyPI 项目名

nonebot-plugin-pjsekaihelper

插件 import 包名

nonebot_plugin_pjsekaihelper

标签

[{"label":"pjsk","color":"#ea5252"},{"label":"世界计划","color":"#52ea5a"},{"label":"音游","color":"#52c5ea"}]

插件配置项

插件测试

  • 如需重新运行插件测试,请勾选左侧勾选框
@Ant1816 Ant1816 added Plugin Publish Plugin Publish Publish things to store labels Dec 12, 2024
@noneflow
Copy link
Contributor

noneflow bot commented Dec 12, 2024

📃 商店发布检查结果

Plugin: nonebot_plugin_pjsekaihelper

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

详情
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 项目 nonebot-plugin-pjsekaihelper 已发布至 PyPI。
  • ✅ 标签: pjsk-#ea5252, 世界计划-#52ea5a, 音游-#52c5ea。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.onebot.v11。
  • ✅ 插件 加载测试 通过。
  • ✅ 版本号: 1.2.6。
  • ✅ 发布时间:2024-12-23 23:15:40 CST。

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

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

    💪 Powered by NoneFlow

    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-pjsekaihelper Plugin: nonebot_plugin_pjsekaihelper Dec 12, 2024
    @noneflow noneflow bot linked a pull request Dec 12, 2024 that will close this issue
    @Ant1816 Ant1816 changed the title Plugin: nonebot_plugin_pjsekaihelper Plugin: 世界计划小助手 Dec 12, 2024
    @noneflow noneflow bot changed the title Plugin: 世界计划小助手 Plugin: nonebot_plugin_pjsekaihelper Dec 12, 2024
    @yanyongyu
    Copy link
    Member

    yanyongyu commented Dec 14, 2024

    插件依赖里多了 datetime 和 pathlib,ob 适配器版本缺少限制。param 请不要从 nb 的 internal 模块导入,请从 nonebot.params 导入。

    全局变量请正确初始化,不要使用 globals()

    @Ant1816
    Copy link
    Contributor Author

    Ant1816 commented Dec 18, 2024

    依赖已删除datetime和pathlib, ob适配器版本限制为>=2.1.0, param从nonebot.params导入, 全局变量已经正确初始化

    @yanyongyu
    Copy link
    Member

    插件还使用了 requests,请用 httpx.AsyncClient 或者 aiohttp 替代。插件内使用了运行目录读写文件,请使用 localstore 插件获取路径。插件配置使用了过时的 validator,要么别用,要么兼容 pydantic v1 和 v2。插件元数据缺少配置项。

    @Ant1816
    Copy link
    Contributor Author

    Ant1816 commented Dec 22, 2024

    插件已使用httpx.AsyncClient处理请求 全部读写操作已改用localstore获取目录 已经删除过时的validator 元数据补全配置项

    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_pjsekaihelper Plugin: nonebot-plugin-pjsekaihelper Dec 22, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-pjsekaihelper Plugin: nonebot_plugin_pjsekaihelper Dec 23, 2024
    @yanyongyu
    Copy link
    Member

    插件依赖里的 requests 没有删除。你 validator 的写法限定 pydantic v2了,你可以选择移除 validator 或者在插件依赖里限定 pydantic >=2.0.0。

    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.

    2 participants