{"id":15509895,"url":"https://github.com/atorber/chat-wechat","last_synced_at":"2025-08-02T11:35:11.486Z","repository":{"id":186459718,"uuid":"675196058","full_name":"atorber/chat-wechat","owner":"atorber","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-11T06:34:49.000Z","size":1139,"stargazers_count":13,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-23T03:02:40.230Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atorber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-06T05:21:18.000Z","updated_at":"2024-10-17T23:59:17.000Z","dependencies_parsed_at":"2023-10-11T07:58:05.681Z","dependency_job_id":null,"html_url":"https://github.com/atorber/chat-wechat","commit_stats":null,"previous_names":["atorber/type-wechaty","atorber/chat-wechaty","atorber/chat-wechat"],"tags_count":0,"template":false,"template_full_name":"wechaty/getting-started","purl":"pkg:github/atorber/chat-wechat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fchat-wechat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fchat-wechat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fchat-wechat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fchat-wechat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atorber","download_url":"https://codeload.github.com/atorber/chat-wechat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atorber%2Fchat-wechat/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268379002,"owners_count":24240920,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T09:44:47.157Z","updated_at":"2025-08-02T11:35:11.460Z","avatar_url":"https://github.com/atorber.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chat WeChat\n\n## 简介\n\nChatGPT+WeChat的项目有很多，大部分项目聚焦的使用WeChat作为与ChatGPT聊天的对话窗口，包括本项目作者的另一个项目 [wechatgpt](https://github.com/atorber/wechatgpt)，Chat WeChat项目带来了一些新的探索，使用ChatGPT可以实现更多种与WeChat进行交互的可能性，他能够帮助实现更多有价值的应用。\n\n本项目使用ChatGPT控制微信机器人执行各种命令，将WeChat打造成你的智能助理，开源项目wechaty+ [typechat](https://github.com/microsoft/TypeChat) 的结合，已实现以下功能：\n\n- 使用自然语言给指定好友或群发消息（如果你是一个日常需要协调和安排各种不同的人或群的角色，这将非常有帮助）\n\n- 定时任务（/llm 每天晚上10点提醒【大李】：该睡觉啦）\n\n- ...\n\n更多功能期待一起探索和贡献代码\n\n## 快速开始\n\n1. 检查nodejs环境，环境要求：[typechat](https://github.com/microsoft/TypeChat)仅支持nodejs18以上，不支持nodejs16\n\n```\nnode -v\n```\n\n2. 重命名.env.example为.env,配置.env文件中相关信息\n\n```.env\nOPENAI_API_KEY=sk-xxxxxxxxxxxx # 你的openai api key\nOPENAI_API_BASE_URL=https://api.openai.com # 你的openai请求地址\nOPENAI_ENDPOINT=https://api.openai.com/v1/chat/completions # 你的openai接入点\nOPENAI_MODEL=gpt-3.5-turbo # 使用的openai模型\nADMIN_ROOM_TOPIC=管理员专属群 # 管理群名称，在此群发消息时才会触发LLM指令，与ADMIN_WX_NAME至少配置一项\nADMIN_WX_NAME=李四 # 管理员微信昵称，管理员向发消息时才会触发LLM指令，一般是你另一个微信的昵称，与ADMIN_ROOM_TOPIC至少配置一项\n```\n\n\u003e 国内可以购买到的openai api服务推荐 [传送门](https://www.yuque.com/atorber/oegota/rs4uk3geb4amurwb)\n\n3. 安装依赖及运行程序\n\n```\nnpm i\nnpm run start\n```\n\n4. 扫码登录后在管理员群内发消息或使用管理员微信向机器人发消息\n\n指令格式“/+空格+指令内容”，控制指令示例：\n\n```\n/ 通知【超哥3、大师、大李】：马上来开会，带笔记本\n\n/ 通知 张三：下午3点到会议室开会\n\n/ 通知 张三、李四：下午3点到会议室开会\n\n/ 通知群【瓦力是群主、Moments、全员群】:全体成员到到会议室开会\n\n/ 通知群 Moments：全体员工下午1点到公司开会\n\n/ 每天晚上10点提醒【大李】：该睡觉啦\n```\n\n\u003e 将好友备注为实际姓名或不容易记混淆的名字，将会极大的提升准确率\n\n## 效果\n\n\u003e 注意：\"/llm\"开始的激活词已更新为\"/\"\n\n在管理员群发送控制任务\n\n\u003cimg src=\"./docs/images/1.png\" alt=\"Image\" style=\"width: 500px; \"\u003e\n\n自动识别并执行\n\n\u003cimg src=\"./docs/images/2.png\" alt=\"Image\" style=\"width: 500px; \"\u003e\n\n定时任务（执行逻辑暂未实现）\n\n\u003cimg src=\"./docs/images/3.png\" alt=\"Image\" style=\"width: 500px; \"\u003e\n\n## 迭代计划\n\n- [ ] 增加黑白名单功能，可以将指定好友或群添加到白名单开启对应权限\n\n- [ ] 待办清单/闪念胶囊，管理待办\n\n- [ ] 消息查询，查询和指定好友、群的近期聊天内容\n\n- [ ] 管理问答列表，向微信对话平台或QA Book添加问答内容\n\n## 更新记录\n\n### v0.1.0 (2023-8-6)\n\nInit version\n\n## 更多\n\n推荐了解微软出品的探索性项目 [typechat](https://github.com/microsoft/TypeChat)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatorber%2Fchat-wechat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatorber%2Fchat-wechat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatorber%2Fchat-wechat/lists"}