Skip to content

Adapter: nonebot-adapter-efchat #3495

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

Open
molanp opened this issue May 22, 2025 · 3 comments · May be fixed by #3496
Open

Adapter: nonebot-adapter-efchat #3495

molanp opened this issue May 22, 2025 · 3 comments · May be fixed by #3496
Labels
Adapter Publish Adapter Publish Publish things to store

Comments

@molanp
Copy link
Contributor

molanp commented May 22, 2025

适配器名称

nonebot-adapter-efchat

适配器描述

适用于EFChat(恒五聊)聊天室的nonebot适配器

PyPI 项目名

nonebot-adapter-efchat

适配器 import 包名

nonebot.adapters.efchat

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

https://github.com/molanp/nonebot_adapter_efchat

标签

[{"label":"EFChat","color":"#ac6161"},{"label":"恒五聊","color":"#cc99ff"}]

@molanp molanp added Adapter Publish Adapter Publish Publish things to store labels May 22, 2025
@noneflow
Copy link
Contributor

noneflow bot commented May 22, 2025

📃 商店发布检查结果

Adapter: nonebot-adapter-efchat

主页

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

详情
  • ✅ 项目 主页 返回状态码 200。
  • ✅ 项目 nonebot-adapter-efchat 已发布至 PyPI。
  • ✅ 标签: EFChat-#ac6161, 恒五聊-#cc99ff。
  • ✅ 版本号: 0.0.6。
  • ✅ 发布时间:2025-05-30 19:31:05 CST。

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

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

    💪 Powered by NoneFlow

    @yanyongyu
    Copy link
    Member

    yanyongyu commented May 29, 2025

    发布前请先阅读一下 #2435 ,确认无误后回复一下。

    这里的 tome 不正确,建议在 check to me 做判断然后写入 event 字段,不应该直接读取全局配置,会出错。 https://github.com/molanp/nonebot_adapter_efchat/blob/3b219706303f77d7c60c2a75b27e3f4cea2f92a0/src/nonebot/adapters/efchat/event.py#L28-L41

    这里event的校验/后处理应该使用 pydantic validator,你可以参考其他适配器通过 from nonebot.compat import model_validator 实现。

    adapter 的 startup 创建连接应该使用 self.on_ready(xxx) 。需要在启动完成后发起连接。

    适配器 import 包名不对吧,应该是 nonebot.adapters.efchat ?

    cc @RF-Tar-Railt

    @molanp
    Copy link
    Contributor Author

    molanp commented May 30, 2025

    已完成规范化处理

    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