nonebot2 icon indicating copy to clipboard operation
nonebot2 copied to clipboard

Plugin: nonebot-plugin-bf1marneserverlist

Open peach0x33a opened this issue 1 year ago • 20 comments

PyPI 项目名

nonebot-plugin-bf1marneserverlist

插件 import 包名

nonebot_plugin_bf1marneserverlist

标签

[{"label":"server","color":"#ea5252"}]

插件配置项

marne_url=""
marne_plugin_enabled=True

peach0x33a avatar Feb 18 '24 05:02 peach0x33a

📃 商店发布检查结果

Plugin: nonebot-plugin-bf1marneserverlist

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

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

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

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

    💪 Powered by NoneFlow

    noneflow[bot] avatar Feb 18 '24 05:02 noneflow[bot]

    1.不要重复开 issue,在此 issue 下评论即可重新测试

    MingxuanGame avatar Feb 18 '24 05:02 MingxuanGame

    retry

    peach0x33a avatar Feb 18 '24 05:02 peach0x33a

    2.你的插件没有添加依赖 nonebot2nonebot-adapter-onebot 3.插件修改后需要发布一个新版本到 PyPI 4.你的插件使用了 requests,建议使用异步 http 库如 httpx aiohttp 替换 5.你的插件的 Config 正在使用 Pydantic v1 用法,这可能会导致不兼容 6.issue 中的 “插件配置项” 需使用你在 .env.* 里面的配置

    MingxuanGame avatar Feb 18 '24 05:02 MingxuanGame

    retry plz

    peach0x33a avatar Feb 18 '24 06:02 peach0x33a

    1

    peach0x33a avatar Feb 18 '24 06:02 peach0x33a

    2

    peach0x33a avatar Feb 18 '24 06:02 peach0x33a

    你插件结构也不对

    RF-Tar-Railt avatar Feb 18 '24 07:02 RF-Tar-Railt

    retry

    peach0x33a avatar Feb 18 '24 07:02 peach0x33a

    21312321

    peach0x33a avatar Feb 18 '24 07:02 peach0x33a

    https://github.com/SAFEluren/nonebot-plugin-bf1marneserverlist/blob/master/plugins%2Fbf1marneserverlist%2F__init__.py#L45-L46 好神秘

    KomoriDev avatar Feb 18 '24 07:02 KomoriDev

    sadasd

    peach0x33a avatar Feb 18 '24 08:02 peach0x33a

    插件结构不对,看看文档或社区的插件

    KomoriDev avatar Feb 18 '24 08:02 KomoriDev

    retry 21213

    peach0x33a avatar Feb 18 '24 08:02 peach0x33a

    asdf

    peach0x33a avatar Feb 18 '24 08:02 peach0x33a

    a

    peach0x33a avatar Feb 18 '24 08:02 peach0x33a

    😭感谢几位大佬

    peach0x33a avatar Feb 18 '24 09:02 peach0x33a

    • 不要在机器人目录下随意存储数据文件,请考虑使用 localhost 插件
    • 插件 Config 为 Pydantic v1 用法,这可能会导致不兼容
      • 由于仅设置 extra=ignore,可以删去此 Config 中的 Config
    class Config(BaseModel):
        marne_url: str
        marne_plugin_enabled: bool = True
        marne_data_dir: str = './data/marne_data/'
    -   class Config:
    -       extra = "ignore"
    
    • 对于 _command_arg(state) 的调用可改为 依赖注入

    MingxuanGame avatar Feb 18 '24 09:02 MingxuanGame

    1 2 已修改 3不会

    peach0x33a avatar Feb 18 '24 09:02 peach0x33a

    1

    peach0x33a avatar Feb 19 '24 16:02 peach0x33a

    你使用 nonebot_plugin_localstore 插件前没有 require。

    he0119 avatar Feb 21 '24 14:02 he0119

    你使用 nonebot_plugin_localstore 插件前没有 require。

    有啊 Line17

    peach0x33a avatar Feb 21 '24 14:02 peach0x33a

    你使用 nonebot_plugin_localstore 插件前没有 require。

    有啊 Line17

    你应该在 import nonebot_plugin_localstore as store 这个语句之前 require。

    he0119 avatar Feb 21 '24 14:02 he0119

    你使用 nonebot_plugin_localstore 插件前没有 require。

    有啊 Line17

    你应该在 import nonebot_plugin_localstore as store 这个语句之前 require。

    已修改

    peach0x33a avatar Feb 21 '24 14:02 peach0x33a

    测试还没通过?

    yanyongyu avatar Feb 22 '24 03:02 yanyongyu

    ...不应该啊?之前都通过了的 重试一遍

    peach0x33a avatar Feb 22 '24 17:02 peach0x33a