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_palworld #3243

Closed
1 task
huanxin996 opened this issue Jan 6, 2025 · 7 comments · Fixed by #3244
Closed
1 task

Plugin: nonebot_plugin_palworld #3243

huanxin996 opened this issue Jan 6, 2025 · 7 comments · Fixed by #3244
Labels
Plugin Publish Plugin Publish Publish things to store

Comments

@huanxin996
Copy link
Contributor

huanxin996 commented Jan 6, 2025

PyPI 项目名

nonebot-plugin-palworld

插件 import 包名

nonebot_plugin_palworld

标签

[{"label":"palworld","color":"#006cff"}]

插件配置项

插件测试

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

noneflow bot commented Jan 6, 2025

📃 商店发布检查结果

Plugin: nonebot_plugin_palworld

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

详情
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 项目 nonebot-plugin-palworld 已发布至 PyPI。
  • ✅ 标签: palworld-#006cff。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.onebot.v11。
  • ✅ 插件 加载测试 通过。
  • ✅ 版本号: 0.0.7。
  • ✅ 发布时间:2025-01-11 11:57:19 CST。

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

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

    💪 Powered by NoneFlow

    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_palword Plugin: nonebot-plugin-palword Jan 6, 2025
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-palword Plugin: nonebot_plugin_palworld Jan 6, 2025
    @yanyongyu
    Copy link
    Member

    插件配置项请删除默认值,或者对未填写的情况做判断,否则会导致不正确行为

    @huanxin996
    Copy link
    Contributor Author

    已修改判断到最新发布版本内

    插件配置项请删除默认值,或者对未填写的情况做判断,否则会导致不正确行为

    @yanyongyu
    Copy link
    Member

    你使用了 pydantic v2 的 validator,请删除或自行判断,确保对 pydantic v1 的兼容性。

    @huanxin996
    Copy link
    Contributor Author

    try:
    pydantic_version = pkg_resources.get_distribution('pydantic').version
    IS_V1 = pydantic_version.startswith('1.')
    except Exception:
    IS_V1 = False

    if IS_V1:
    from pydantic import validator as field_validator
    else:
    from pydantic import field_validator
    已修改

    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_palworld Plugin: nonebot-plugin-palworld Jan 9, 2025
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-palworld Plugin: nonebot_plugin_palworld Jan 9, 2025
    @yanyongyu
    Copy link
    Member

    pkg_resources 不是标准库,请使用 from nonebot.compat import PYDANTIC_V2

    @huanxin996
    Copy link
    Contributor Author

    已修改

    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