面向微信的 AstrBot 后端 · An AstrBot-based backend for WeChat
中文 · English · WeRC · RCBridge · AstrBot
- 自然群聊:支持点名、追问、引用和近期上下文,逐群控制主动插话。
- 会话管理:在面板内编辑白名单、管理员和唤醒称呼,按会话或日期后台补读 WeRC 历史。
- 丰富消息:识读 B 站分享,缓存微信表情,可把选好的表情以 GIF 发送。
安装(Python 3.12+、uv):
uv sync
uv run python mon3trbot/install.py
uv run python main.py在 http://127.0.0.1:6185 配置模型和 OneBot v11 反向 WebSocket 机器人,平台 ID 设为 wechat_bridge。另行安装 WeRC 与 RCBridge,让 RCBridge 接入 WeRC 并连接该 OneBot 地址。本仓库只提供 Bot 后端。
历史补读可在 Mon3trBot 插件配置中指定本机 WeRC 连接文件或 RCBridge 的配置文件,再到「记忆同步」选择范围。群长期摘要可搭配 Memory Companion 插件使用。
- Natural group chat: Name-based wake-up, follow-ups, quotes, and recent context, with per-group controls for proactive replies.
- Conversation controls: Edit allowlists, admins, and wake names in the dashboard; backfill WeRC history by chat and date range.
- Rich messages: Preview Bilibili shares and recognize, cache, and send selected WeChat stickers as GIFs.
Install (Python 3.12+ and uv):
uv sync
uv run python mon3trbot/install.py
uv run python main.pySet up a model and a OneBot v11 reverse WebSocket bot at http://127.0.0.1:6185. Set the platform ID to wechat_bridge. Install WeRC and RCBridge separately, then connect RCBridge to WeRC and the OneBot endpoint. This repository ships only the bot backend.
For history sync, point the Mon3trBot plugin to a local WeRC connection file or the RCBridge config, then choose the scope in 记忆同步 (History Sync). For long-term group summaries, use the optional Memory Companion plugin.