{"id":37133450,"url":"https://github.com/ulnit/wechatbot","last_synced_at":"2026-01-14T15:34:46.246Z","repository":{"id":182500964,"uuid":"615921650","full_name":"ulnit/wechatbot","owner":"ulnit","description":"wechat bot base chatgpt","archived":false,"fork":false,"pushed_at":"2023-07-22T10:26:06.000Z","size":41754,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-09-05T03:12:01.079Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/ulnit.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}},"created_at":"2023-03-19T04:12:53.000Z","updated_at":"2023-09-05T03:12:01.080Z","dependencies_parsed_at":"2023-07-20T08:56:36.964Z","dependency_job_id":null,"html_url":"https://github.com/ulnit/wechatbot","commit_stats":null,"previous_names":["ulnit/wechatbot"],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/ulnit/wechatbot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulnit%2Fwechatbot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulnit%2Fwechatbot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulnit%2Fwechatbot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulnit%2Fwechatbot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ulnit","download_url":"https://codeload.github.com/ulnit/wechatbot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ulnit%2Fwechatbot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424374,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-14T15:34:45.691Z","updated_at":"2026-01-14T15:34:46.238Z","avatar_url":"https://github.com/ulnit.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 特别提醒\n\n之前水文章（ https://51.ruyo.net/18261.html ）的时候同步这个仓库。微信早就被封了。\n\n本仓库的内容谨慎尝试！！！！！！！！！！\n\n\n\n# wechatbot\n\u003e 最近chatGPT异常火爆，本项目可以将个人微信化身GPT机器人，\n\u003e 项目基于[openwechat](https://github.com/eatmoreapple/openwechat) 开发。\n\n[![Release](https://img.shields.io/github/v/release/869413421/wechatbot.svg?style=flat-square)](https://github.com/869413421/wechatbot/releases/tag/v1.0.1)\n![Github stars](https://img.shields.io/github/stars/869413421/wechatbot.svg)\n![Forks](https://img.shields.io/github/forks/869413421/wechatbot.svg?style=flat-square)\n\n### 目前实现了以下功能\n * 提问增加上下文，更接近官网效果 \n * 机器人群聊@回复\n * 机器人私聊回复\n * 好友添加自动通过\n \n# 使用前提\n\u003e * ~~目前只支持在windows上运行因为需要弹窗扫码登录微信，后续会支持linux~~   已支持\n\u003e * 有openai账号，并且创建好api_key，注册事项可以参考[此文章](https://juejin.cn/post/7173447848292253704) 。\n\u003e * 微信必须实名认证。\n\n# 注意事项\n\u003e * 项目仅供娱乐，滥用可能有微信封禁的风险，请勿用于商业用途。\n\u003e * 请注意收发敏感信息，本项目不做信息过滤。\n\n# 快速开始\n\u003e 非技术人员请直接下载release中的[压缩包](https://github.com/869413421/wechatbot/releases/tag/v1.1.1) ，解压运行。\n````\n# 获取项目\ngit clone https://github.com/869413421/wechatbot.git\n\n# 进入项目目录\ncd wechatbot\n\n# 复制配置文件\ncopy config.dev.json config.json\n\n# 启动项目\ngo run main.go\n````\n\n# 配置文件说明\n````\n{\n\"api_key\": \"your api key\",\n\"auto_pass\": true,\n\"session_timeout\": 60\n}\n\napi_key：openai api_key\nauto_pass:是否自动通过好友添加\nsession_timeout：会话超时时间，默认60秒，单位秒，在会话时间内所有发送给机器人的信息会作为上下文。\n````\n\n# 使用示例\n### 向机器人发送`我要问下一个问题`，清空会话信息。\n### 私聊\n\u003cimg width=\"300px\" src=\"\"/\u003e\n\n### 群聊@回复\n\u003cimg width=\"300px\" src=\"\"/\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulnit%2Fwechatbot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fulnit%2Fwechatbot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fulnit%2Fwechatbot/lists"}