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_partner_join #3048

Closed
YuuzukiRin opened this issue Oct 20, 2024 · 15 comments · Fixed by #3051
Closed

Plugin: nonebot_plugin_partner_join #3048

YuuzukiRin opened this issue Oct 20, 2024 · 15 comments · Fixed by #3051
Labels
Plugin Publish Plugin

Comments

@YuuzukiRin
Copy link
Contributor

YuuzukiRin commented Oct 20, 2024

PyPI 项目名

nonebot-plugin-partner-join

插件 import 包名

nonebot_plugin_partner_join

标签

[{"label":"maimai","color":"#a1b5e8"},{"label":"picture","color":"#a1b5e8"}]

插件配置项

No Response

@YuuzukiRin YuuzukiRin added the Plugin Publish Plugin label Oct 20, 2024
@noneflow
Copy link
Contributor

noneflow bot commented Oct 20, 2024

📃 商店发布检查结果

Plugin: nonebot_plugin_partner_join

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

详情
  • ✅ 项目 nonebot-plugin-partner-join 已发布至 PyPI。
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 标签: maimai-#a1b5e8, picture-#a1b5e8。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.onebot.v11。
  • ✅ 插件 加载测试 通过。

  • 💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。
    💡 当插件加载测试失败时,请发布新版本后在当前页面下评论任意内容以触发测试。

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

    💪 Powered by NoneFlow

    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_partner_join Plugin: nonebot-plugin-partner-join Oct 20, 2024
    @YuuzukiRin
    Copy link
    Contributor Author

    已更新

    2 similar comments
    @YuuzukiRin
    Copy link
    Contributor Author

    已更新

    @YuuzukiRin
    Copy link
    Contributor Author

    已更新

    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-partner-join Plugin: nonebot_plugin_partner_join Oct 20, 2024
    @yanyongyu
    Copy link
    Member

    插件依赖请限制版本,imageio似乎没有使用到可以删除,dotenv也应该删除。你插件的init文件名写错了,少了两下划线。。。插件读取配置项的方式错误,请参考文档编写,同时请勿修改全局配置或者使用eval。另外请勿自行使用dotenv加载配置,这会影响nb运行。插件数据请使用 localstore 插件

    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_partner_join Plugin: nonebot-plugin-partner-join Oct 21, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-partner-join Plugin: nonebot_plugin_partner_join Oct 21, 2024
    @YuuzukiRin
    Copy link
    Contributor Author

    /update

    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_partner_join Plugin: nonebot-plugin-partner-join Oct 22, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-partner-join Plugin: nonebot_plugin_partner_join Oct 22, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_partner_join Plugin: nonebot-plugin-partner-join Oct 22, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-partner-join Plugin: nonebot_plugin_partner_join Oct 22, 2024
    @YuuzukiRin
    Copy link
    Contributor Author

    /update

    @yanyongyu
    Copy link
    Member

    __init__.py文件名到现在都没改。。。插件元数据还是缺少配置项。配置部分 https://github.com/YuuzukiRin/nonebot_plugin_partner_join/blob/44ebfc4ab4497d81406d8ace44d3114ce8097af3/nonebot_plugin_partner_join/_init_.py#L105-L115 不需要,直接从插件配置读取即可。

    请使用 Message 而不是用cq码!!!https://github.com/YuuzukiRin/nonebot_plugin_partner_join/blob/44ebfc4ab4497d81406d8ace44d3114ce8097af3/nonebot_plugin_partner_join/_init_.py#L157-L164

    @YuuzukiRin
    Copy link
    Contributor Author

    /update

    @yanyongyu
    Copy link
    Member

    插件发送本地文件请使用 pathlib.Path https://github.com/YuuzukiRin/nonebot_plugin_partner_join/blob/351b00e339876ceaa013f5ab3451a5b12b14d372/nonebot_plugin_partner_join/__init__.py#L207

    配置读取方式依然不正确,请参考文档正确读取插件配置,并在插件元数据中添加配置类。https://github.com/YuuzukiRin/nonebot_plugin_partner_join/blob/351b00e339876ceaa013f5ab3451a5b12b14d372/nonebot_plugin_partner_join/__init__.py#L75-L85

    @YuuzukiRin
    Copy link
    Contributor Author

    /update

    @yanyongyu
    Copy link
    Member

    插件配置项默认值填写不正确,请直接填写数值,不需要从全局获取。插件发送本地文件路径依然不正确,请使用 pathlib

    @YuuzukiRin
    Copy link
    Contributor Author

    /update

    @yanyongyu
    Copy link
    Member

    插件元数据里缺少配置项。pathlib使用方式不正确,你可以直接传path不要自己format file uri。https://github.com/YuuzukiRin/nonebot_plugin_partner_join/blob/0c61f1aeb8e47a2a6e4dc32554713fdaa3b4902c/nonebot_plugin_partner_join/__init__.py#L206

    @YuuzukiRin
    Copy link
    Contributor Author

    /update

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

    Successfully merging a pull request may close this issue.

    2 participants