nonebot / nonebot2

跨平台 Python 异步聊天机器人框架 / Asynchronous multi-platform chatbot framework written in Python
https://nonebot.dev
MIT License
5.97k stars 555 forks source link

Plugin: 无情的发图姬 #2922

Closed Funny1Potato closed 1 month ago

Funny1Potato commented 1 month ago

PyPI 项目名

nonebot-plugin-sendpic

插件 import 包名

nonebot_plugin_sendpic

标签

[]

插件配置项

No Response

noneflow[bot] commented 1 month ago

📃 商店发布检查结果

Plugin: 无情的发图姬

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

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

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

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

    💪 Powered by NoneFlow

    Funny1Potato commented 1 month ago

    已更新

    Funny1Potato commented 1 month ago

    +1

    Funny1Potato commented 1 month ago

    唐完了

    shoucandanghehe commented 1 month ago

    网络通信请不要使用requests会阻塞机器人 请使用aiohttp或者httpx

    Funny1Potato commented 1 month ago

    收到,已修改

    shoucandanghehe commented 1 month ago

    收到,已修改

    意思是让你用异步👇 不是换个库用同步(

    from httpx import AsyncClient
    async with AsyncClient() as session:
        response = await session.get(url)
    Funny1Potato commented 1 month ago

    原来如此,受教了

    shoucandanghehe commented 1 month ago

    截至你发的0.0.10版 插件配置还没有声明在Config类里 建议阅读 https://nonebot.dev/docs/appendices/config#%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE

    shoucandanghehe commented 1 month ago

    顺便你用require的方法好诡异( 建议阅读 https://nonebot.dev/docs/advanced/requiring#%E6%8F%92%E4%BB%B6%E4%BE%9D%E8%B5%96%E5%A3%B0%E6%98%8E

    XieXiLin2 commented 1 month ago

    https://github.com/nonebot/plugin-apscheduler?tab=readme-ov-file#%E4%BD%BF%E7%94%A8%E6%96%B9%E5%BC%8F

    Funny1Potato commented 1 month ago

    非!常!抱!歉!之前自己用的时候没有考虑那么多,改完发上来之前也没好好检查过,给您添麻烦了

    yanyongyu commented 1 month ago

    你的插件名建议换一个方便理解的。插件配置的读取方式不对,参考文档使用 get_plugin_config 。

    Funny1Potato commented 1 month ago

    好的,已修改

    yanyongyu commented 1 month ago

    让你换插件名是指你插件元数据里的插件名称,不是 pypi 包名。。。pypi 包名搞这么长干啥。。。

    Funny1Potato commented 1 month ago

    原来是这样嘛,不好意思是我理解错误了,已经改回来了

    yanyongyu commented 1 month ago

    如果改了名字记得发版并在这里重新触发测试。

    Funny1Potato commented 1 month ago

    好的

    Funny1Potato commented 1 month ago

    test v0.1.0