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: 复读姬+1 PlusOne #2731

Closed
yejue opened this issue May 23, 2024 · 10 comments · Fixed by #2732
Closed

Plugin: 复读姬+1 PlusOne #2731

yejue opened this issue May 23, 2024 · 10 comments · Fixed by #2732
Labels
Plugin Publish Plugin

Comments

@yejue
Copy link
Contributor

yejue commented May 23, 2024

PyPI 项目名

nonebot-plugin-plus-one

插件 import 包名

nonebot_plugin_plus_one

标签

[{"label":"复读姬","color":"#df3cda"},{"label":"船新版本","color":"#28d98e"}]

插件配置项

# 匹配优先级
PLUS_ONE_PRIORITY = 10
@yejue yejue added the Plugin Publish Plugin label May 23, 2024
@noneflow
Copy link
Contributor

noneflow bot commented May 23, 2024

📃 商店发布检查结果

Plugin: 复读姬+1 PlusOne

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

详情
  • ✅ 项目 nonebot-plugin-plus-one 已发布至 PyPI。
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 标签: 复读姬-#df3cda, 船新版本-#28d98e。
  • ✅ 插件类型: application。
  • ✅ 插件支持的适配器: nonebot.adapters.console, nonebot.adapters.discord, nonebot.adapters.dodo, nonebot.adapters.feishu, nonebot.adapters.kaiheila, nonebot.adapters.onebot.v11, nonebot.adapters.onebot.v12, nonebot.adapters.qq, nonebot.adapters.red, nonebot.adapters.satori, nonebot.adapters.telegram。
  • ✅ 插件 加载测试 通过。

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

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

    💪 Powered by NoneFlow

    @yejue
    Copy link
    Contributor Author

    yejue commented May 23, 2024

    add nb

    noneflow bot pushed a commit that referenced this issue May 23, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-plus-one Plugin: plus_one May 23, 2024
    @yanyongyu
    Copy link
    Member

    因为你使用了nb新版本的方法,你需要依赖nb 2.2.0+。你的响应器rule regex可以删除。另外你的group id获取方式不正确,你可以使用商店里的 session 插件或 alconna 插件来获取相关信息。

    @noneflow noneflow bot changed the title Plugin: plus_one Plugin: 复读姬+1 PlusOne May 25, 2024
    @yejue
    Copy link
    Contributor Author

    yejue commented May 27, 2024

    因为你使用了nb新版本的方法,你需要依赖nb 2.2.0+。你的响应器rule regex可以删除。另外你的group id获取方式不正确,你可以使用商店里的 session 插件或 alconna 插件来获取相关信息。

    0.1.4:使用 session 插件获取 group id
    0.1.5:使用 session 插件获取 group id

    @yanyongyu
    Copy link
    Member

    regex的问题依旧存在,另外你没有继承session支持的适配器

    @yejue
    Copy link
    Contributor Author

    yejue commented May 28, 2024

    regex的问题依旧存在,另外你没有继承session支持的适配器

    0.1.7 移除 regex,增加支持的适配器

    @yanyongyu
    Copy link
    Member

    你应该使用 nb 提供的 inherit_supported_adapters 方法继承支持的适配器

    @yejue
    Copy link
    Contributor Author

    yejue commented May 28, 2024

    你应该使用 nb 提供的 inherit_supported_adapters 方法继承支持的适配器

    0.1.9 使用 inherit_supported_adapters

    @yanyongyu
    Copy link
    Member

    请不要用set()作为默认值,直接把inherit的结果赋值即可。空的set代表不支持任何适配器,None代表支持所有适配器。

    @yejue
    Copy link
    Contributor Author

    yejue commented May 28, 2024

    请不要用set()作为默认值,直接把inherit的结果赋值即可。空的set代表不支持任何适配器,None代表支持所有适配器。

    对应修改

    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