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

Adapter: 黑盒语音 #3248

Closed
lclbm opened this issue Jan 8, 2025 · 6 comments · Fixed by #3249
Closed

Adapter: 黑盒语音 #3248

lclbm opened this issue Jan 8, 2025 · 6 comments · Fixed by #3249
Labels
Adapter Publish Adapter Publish Publish things to store

Comments

@lclbm
Copy link
Contributor

lclbm commented Jan 8, 2025

适配器名称

黑盒语音

适配器描述

黑盒语音机器人适配

PyPI 项目名

nonebot-adapter-heybox

适配器 import 包名

nonebot.adapters.heybox

适配器项目仓库/主页链接

https://github.com/lclbm/adapter-heybox

标签

[]

@lclbm lclbm added Adapter Publish Adapter Publish Publish things to store labels Jan 8, 2025
@noneflow
Copy link
Contributor

noneflow bot commented Jan 8, 2025

📃 商店发布检查结果

Adapter: 黑盒语音

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

详情
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 项目 nonebot-adapter-heybox 已发布至 PyPI。
  • ✅ 版本号: 0.1.1。
  • ✅ 发布时间:2025-01-09 15:05:52 CST。

  • 💡 如需修改信息,请直接修改 issue,机器人会自动更新检查结果。
    💡 当插件加载测试失败时,请发布新版本后勾选插件测试勾选框重新运行插件测试。

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

    💪 Powered by NoneFlow

    noneflow bot pushed a commit that referenced this issue Jan 8, 2025
    @yanyongyu
    Copy link
    Member

    nb 依赖版本请升级到 2.3.0 +。 init module 里请使用 as re-export。adapter 的 tasks 请使用 set 并在 task done callback 里使用 discard 移除。start forward 请在 on_ready 时启动。

    @lclbm
    Copy link
    Contributor Author

    lclbm commented Jan 11, 2025

    nb 依赖版本请升级到 2.3.0 +。 init module 里请使用 as re-export。adapter 的 tasks 请使用 set 并在 task done callback 里使用 discard 移除。start forward 请在 on_ready 时启动。

    已解决
    lclbm/adapter-heybox@v0.1.1...main
    另外可以请教一下这个as re-export的作用是什么吗

    @yanyongyu
    Copy link
    Member

    as re-export 的才是 public 接口。Bot 类的 init 第二个参数必须是 id,其他参数请加在后面。对于不支持的事件, send 需要 raise exception。

    另外可以对照下 RFC #2435 看看有没有其他问题。

    noneflow bot pushed a commit that referenced this issue Jan 13, 2025
    @lclbm
    Copy link
    Contributor Author

    lclbm commented Jan 13, 2025

    已解决
    lclbm/adapter-heybox@369e4...HEAD
    参考了适配器规范没啥问题了,除了check_reply, check_at_me, check_nickname相关逻辑还没有实现,因为目前适配器也比较简单,仅支持部分事件的处理,有需要的话后续再实现这三个逻辑

    noneflow bot pushed a commit that referenced this issue Jan 13, 2025
    noneflow bot pushed a commit that referenced this issue Jan 14, 2025
    @noneflow noneflow bot closed this as completed in #3249 Jan 14, 2025
    @yanyongyu
    Copy link
    Member

    请 pr 一下更新 nb readme 中的适配器列表部分,在下方添加仓库与平台链接。

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

    Successfully merging a pull request may close this issue.

    2 participants