{"id":13788395,"url":"https://github.com/formulahendry/chatgpt-wechat-bot","last_synced_at":"2025-04-19T15:33:53.407Z","repository":{"id":215863190,"uuid":"617539217","full_name":"formulahendry/chatgpt-wechat-bot","owner":"formulahendry","description":"ChatGPT 微信机器人，基于 ChatGPT API 和 Wechaty ","archived":false,"fork":false,"pushed_at":"2023-03-30T11:57:46.000Z","size":692,"stargazers_count":35,"open_issues_count":2,"forks_count":9,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T09:23:11.939Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/formulahendry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-03-22T15:44:22.000Z","updated_at":"2024-10-04T08:01:52.000Z","dependencies_parsed_at":"2024-01-07T04:11:40.541Z","dependency_job_id":null,"html_url":"https://github.com/formulahendry/chatgpt-wechat-bot","commit_stats":null,"previous_names":["formulahendry/chatgpt-wechat-bot"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fchatgpt-wechat-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fchatgpt-wechat-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fchatgpt-wechat-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/formulahendry%2Fchatgpt-wechat-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/formulahendry","download_url":"https://codeload.github.com/formulahendry/chatgpt-wechat-bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249220841,"owners_count":21232421,"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","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-08-03T21:00:44.912Z","updated_at":"2025-04-16T08:33:01.472Z","avatar_url":"https://github.com/formulahendry.png","language":"JavaScript","funding_links":[],"categories":["Applications and Demos"],"sub_categories":["LLM (Large Language Model)"],"readme":"# ChatGPT 微信机器人\r\n\r\n基于 ChatGPT API 和 Wechaty，搭建 ChatGPT 微信机器人。\r\n\r\n![使用](./images/usage.jpg)\r\n\r\n## 注意事项\r\n\r\n本项目使用了 Wechaty 的 UOS 协议，登录的微信可能有封号风险，强烈建议使用微信小号进行测试开发和日常使用。 \r\n\r\n## 前置条件\r\n\r\n1. OpenAI 账号，并[创建 API Key](https://platform.openai.com/account/api-keys)\r\n\r\n1. Node.js \u003e= 18\r\n\r\n## 本地运行\r\n\r\n1. `npm install`\r\n\r\n1. `cp .env.example .env`\r\n\r\n1. 在 `.env` 文件中，设置 OPENAI_API_KEY。\r\n\r\n1. `npm start`\r\n\r\n1. 如果是初次登陆，那么需要扫描二维码。\r\n\r\n    ![扫描二维码](./images/qr.jpg)\r\n\r\n1. 登录成功后，就可以私聊或者在微信群@登录微信号进行互动了。\r\n\r\n## 参考\r\n\r\n* [手把手带你搭建 ChatGPT 微信机器人！](https://mp.weixin.qq.com/s/IueBsSX58hwySEc45OxkOQ)\r\n* [把 ChatGPT 微信机器人一键部署到免费服务器！](https://mp.weixin.qq.com/s/tNGl7VdDBWNVFjeCwlzWUw)\r\n* [ChatGPT 微信机器人原理解析（一）：如何接入 ChatGPT API](https://mp.weixin.qq.com/s/KfDTHveO6dIpT4j3q47UNA)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fchatgpt-wechat-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fformulahendry%2Fchatgpt-wechat-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fformulahendry%2Fchatgpt-wechat-bot/lists"}