ZCBOT
通用化 IM 平台:不绑定任何聊天协议——能接 QQ、Telegram、Discord,也能不接平台,只跑定时任务或收 HTTP 事件。 需要哪种能力就启用对应的扩展,业务写在自己的插件里。
当前正式版:v1.8.3 | 预发布:v1.8.5-alpha.1 | CHANGELOG.md
- 项目地址:https://github.com/kuangxing6367/zcbot
- 官方扩展仓库:https://github.com/kuangxing6367/zcbot_plugins
- LLM / Agent 文档:LLM.md —— 给 AI 编码助手的按需加载索引
- 反馈交流:群组 1060129201
一分钟跑起来
git clone https://github.com/kuangxing6367/zcbot.git
cd zcbot
pip install -r requirements.txt
python main.py
看到 框架启动完成,等待消息... 即启动成功(依赖缺了会自动补装)。
官方扩展默认全部关闭。 要哪种能力就启用哪个:把
core_plugins.yaml里对应块的enabled改为true, 或运行python tools/scan_core_plugins.py --enable <扩展名>,重启生效。 进 Web 后台启用webui(127.0.0.1:8080,默认账号admin/admin123,登录后立即改密); 要收发聊天消息就启用某个接入端(如onebot_adapter)。
写个插件
plugins/hello/main.py:
__plugin_meta__ = {"name": "Hello", "version": "1.0.0",
"author": "你", "desc": "打招呼", "priority": 50}
def register(ctx):
ctx.command("/hello", handle_hello, description="打个招呼")
async def handle_hello(event, match):
await ctx.asend_msg(user_id=event.user_id,
group_id=event.group_id if event.is_group else None,
message="Hello, World!")
放进 plugins/ 后点「重载」即可。权限用 require_perm="myplugin.ban" 声明式拦截;
想插到几乎每个运行环节就用 ctx.hook(...)(见 扩展点)。
完整教程见 编写插件。
文档
全部文档平铺在 docs/ 一层,入口 docs/index.md。
- 指南:安装 · 开始使用 · 配置 · 对接 IM · 编写插件 · 多轮会话 · 接入 LLM · 最佳实践
- API:ctx · Event · 扩展点 Hook · 协议适配器 · Framework · 服务注册表 · 插件装饰器
- 进阶:内核设计哲学 · 架构详解 · 加载机制 · 数据库 · 定时任务 · 权限 · 接口令牌 · 部署 · 双核心 · 项目结构 · 扩展清单
- LLM:LLM.md · 框架结构 · 插件开发 · 调试排错
开源协议
MIT + Apache 2.0 双协议,任选其一适用。
本项目以 AI 生成为主、人工辅助完成。用着顺手的话,给个 Star 吧!
Metadata
Release files for zcbot 1.8.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| zcbot-1.8.7-py3-none-any.whl | Python 3 | none | any | Details |
Release files / zcbot-1.8.7-py3-none-any.whl
| Download URL | zcbot-1.8.7-py3-none-any.whl |
|---|---|
| Size | 11.4 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c89056eb8cfb843823a8458f9d28f15eade8596074eae8238ee47f5bdb07fe2c
|
|
BLAKE2b-256 checksum How to use checksums |
d262e38a06ef04688944925a6049f23917027da85794f8298160254a5eb2a91c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Security for zcbot 1.8.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.