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: lagrange #2897

Closed
Lonely-Sails opened this issue Aug 17, 2024 · 18 comments · Fixed by #2898
Closed

Plugin: lagrange #2897

Lonely-Sails opened this issue Aug 17, 2024 · 18 comments · Fixed by #2898
Labels
Plugin Publish Plugin

Comments

@Lonely-Sails
Copy link
Contributor

Lonely-Sails commented Aug 17, 2024

PyPI 项目名

nonebot_plugin_lagrange

插件 import 包名

nonebot_plugin_lagrange

标签

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

插件配置项

LAGRANGE_PATH='Lagrange'
LAGRANGE_AUTO_START=true
LAGRANGE_AUTO_INSTALL=true
LAGRANGE_MAX_CACHE_LOG=500
@Lonely-Sails Lonely-Sails added the Plugin Publish Plugin label Aug 17, 2024
@noneflow
Copy link
Contributor

noneflow bot commented Aug 17, 2024

📃 商店发布检查结果

Plugin: lagrange

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

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

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

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

    💪 Powered by NoneFlow

    @Lonely-Sails
    Copy link
    Contributor Author

    已更新

    noneflow bot pushed a commit that referenced this issue Aug 17, 2024
    @noneflow noneflow bot mentioned this issue Aug 17, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot-plugin-lagrange Plugin: lagrange Aug 17, 2024
    noneflow bot pushed a commit that referenced this issue Aug 17, 2024
    @shoucandanghehe
    Copy link
    Contributor

    推荐使用 asyncio.subprocess
    而不是 subprocess + threading

    noneflow bot pushed a commit that referenced this issue Aug 17, 2024
    @AzideCupric
    Copy link
    Contributor

    或许可以试试基于 nonebot-plugin-gocqhttp 进行修改

    @Lonely-Sails
    Copy link
    Contributor Author

    或许可以试试基于 nonebot-plugin-gocqhttp 进行修改

    我试试看

    @Lonely-Sails Lonely-Sails reopened this Aug 18, 2024
    @noneflow noneflow bot changed the title Plugin: lagrange Plugin: nonebot_plugin_lagrange Aug 18, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_lagrange Plugin: lagrange Aug 18, 2024
    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    @yanyongyu
    Copy link
    Member

    你插件完全不需要用 threading 来写啊,可以全部改成 asyncio。

    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    @Lonely-Sails
    Copy link
    Contributor Author

    已更新

    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    @Lonely-Sails
    Copy link
    Contributor Author

    你插件完全不需要用 threading 来写啊,可以全部改成 asyncio。

    我想要在启动的时候自动开启,只用asyncio貌似做不到(

    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    @shoucandanghehe
    Copy link
    Contributor

    我想要在启动的时候自动开启,只用asyncio貌似做不到(

    on_startup可以直接塞async func啊

    @Lonely-Sails
    Copy link
    Contributor Author

    我想要在启动的时候自动开启,只用asyncio貌似做不到(

    on_startup可以直接塞async func啊

    已修改

    @j1g5awi
    Copy link
    Member

    j1g5awi commented Aug 18, 2024

    所以,本插件的[开关]拉格兰功能有何用处?
    我的常识告诉我,nonebot 不能在关闭所有拉格兰之后再发一条消息提示「已关闭」,当然也不能在拉格兰没打开的时候接收消息打开拉格兰(

    @Lonely-Sails
    Copy link
    Contributor Author

    所以,本插件的[开关]拉格兰功能有何用处? 我的常识告诉我,nonebot 不能在关闭所有拉格兰之后再发一条消息提示「已关闭」,当然也不能在拉格兰没打开的时候接收消息打开拉格兰(

    WebUi 还在设计,目前会在启动时自动开启。

    noneflow bot pushed a commit that referenced this issue Aug 18, 2024
    @Lonely-Sails
    Copy link
    Contributor Author

    WebUi 基础功能开发完毕

    @noneflow noneflow bot changed the title Plugin: lagrange Plugin: nonebot_plugin_lagrange Aug 19, 2024
    @Lonely-Sails
    Copy link
    Contributor Author

    已更新

    noneflow bot pushed a commit that referenced this issue Aug 20, 2024
    @noneflow noneflow bot changed the title Plugin: nonebot_plugin_lagrange Plugin: lagrange Aug 20, 2024
    @j1g5awi
    Copy link
    Member

    j1g5awi commented Aug 20, 2024

    何不将 webui 文件存在 pypi 包内?

    @Lonely-Sails
    Copy link
    Contributor Author

    何不将 webui 文件存在 pypi 包内?

    已修改

    @j1g5awi
    Copy link
    Member

    j1g5awi commented Aug 21, 2024

    Lagrange.Onebot 解压失败!错误信息 [Errno 21] Is a directory: '~/.local/share/nonebot2/Lagrange'

    建议如果是解压时的错误,缓存下载好的压缩包。
    建议使用 pathlib 之类的文件路径库。

    @Lonely-Sails
    Copy link
    Contributor Author

    我已尝试修复(因为无法复现

    noneflow bot pushed a commit that referenced this issue Aug 21, 2024
    @noneflow noneflow bot closed this as completed in #2898 Aug 21, 2024
    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.

    5 participants