Files
wechat-agent/config.contacts.yaml
jesxion e2b7987c7e Phase 1: 联系人分类管理
新增文件:
- config.contacts.yaml: 联系人配置示例
- src/core/contact_manager.py: 联系人管理器

功能:
- priority: 重点用户,自动回复
- ignore: 忽略列表,不回复
- normal: 普通用户,默认不回复

engine.py 改动:
- 集成 ContactManager
- 消息处理流程增加联系人分类决策
- 日志显示 contact_type (priority/ignore/normal)
2026-04-13 12:38:58 +08:00

27 lines
664 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 联系人分类配置
# 用于控制哪些联系人需要自动回复,哪些需要忽略
# 重点用户:开启自动回复(关键词 + AI
priority:
enabled: true
users:
- "尾巴~"
# - "张三"
# - "李四"
# 支持模糊匹配TODO如 "张*" 匹配所有姓张的
# 忽略列表:不自动回复,手动处理
ignore:
enabled: true
users:
- "相亲相爱一家人"
- "工作通知群"
- "文件传输助手"
# 公众号前缀匹配
- "公众号:"
# 也可以用正则匹配TODO
# 普通用户:默认不自动回复
normal:
auto_reply: false # true = AI 回复false = 不回复