{"id":19252963,"url":"https://github.com/betasu/wxrobotapp","last_synced_at":"2025-02-23T16:54:21.415Z","repository":{"id":108669054,"uuid":"141522806","full_name":"BetaSu/wxRobotApp","owner":"BetaSu","description":"微信机器人app","archived":false,"fork":false,"pushed_at":"2018-07-31T10:27:58.000Z","size":1537,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-05T07:15:01.828Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BetaSu.png","metadata":{"files":{"readme":"README-zh.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-19T04:03:18.000Z","updated_at":"2021-10-14T04:06:22.000Z","dependencies_parsed_at":"2023-08-23T16:34:25.782Z","dependency_job_id":null,"html_url":"https://github.com/BetaSu/wxRobotApp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2FwxRobotApp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2FwxRobotApp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2FwxRobotApp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BetaSu%2FwxRobotApp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BetaSu","download_url":"https://codeload.github.com/BetaSu/wxRobotApp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240347947,"owners_count":19787236,"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-11-09T18:29:01.773Z","updated_at":"2025-02-23T16:54:21.391Z","avatar_url":"https://github.com/BetaSu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# WECHATY-GETTING-STARTED\n[![Powered by Wechaty](https://img.shields.io/badge/Powered%20By-Wechaty-blue.svg)](https://github.com/chatie/wechaty)\n[![English Version](https://img.shields.io/badge/-English%20Version-blue.svg)](README.md)\n\n[Wechaty](https://github.com/Chatie/wechaty/) 是一个开源的的 **个人号** 微信机器人接口，是一个使用Typescript 构建的Node.js 应用。支持多种微信接入方案，包括网页，ipad，ios，windows， android 等。同时支持Linux, OSX, Win32 和 Docker 等多个平台。\n\n只需要6行代码，你就可以 **通过个人号** 搭建一个 **微信机器人功能** ，用来自动管理微信消息。\n\n更多功能包括：\n- 消息处理：关键词回复\n- 群管理：自动入群，拉人，踢人\n- 自动处理好友请求\n- 智能对话：通过简单配置，即可加入智能对话系统，完成指定任务\n- ... 请自行开脑洞\n\n详情请看[Wechaty](https://github.com/chatie/wechaty)项目。这个项目是 wechaty 初学者的入门教程, 进阶请查看[文档](https://qhduan.github.io/wechaty-doc/#/zh/)\n\n## 快速开始\n\n### 1. 下载代码\n```sh\ngit clone https://github.com/lijiarui/wechaty-getting-started.git\ncd wechaty-getting-started\n```\n\n### 2. 安装依赖\n\u003e 注意: Wechaty 需要 Node.js 的版本 \u003e= 10, 建议运行 `node -v` 进行确认\n\n```sh\nnpm install\n```\n\n如果安装速度很慢，建议[设置中国代理npm源](https://github.com/Chatie/wechaty/wiki/NPM#use-npm-in-china)\n\n### 3. 运行机器人\n```sh\nnode examples/starter-bot.js\n```\n\n运行成功后可以看到如下截图:\n\n![demo-png](https://chatie.io/wechaty-getting-started/demo.png)\n\n截图展示二维码，扫码登陆后，这个微信号就会变成机器人。\n\u003e 某些情况下因为字体问题，导致无法扫码，你也可以复制二维码下面的链接到浏览器里面打开，然后扫码\n\n成功登录后，命令行会显示账号的登陆信息，你应该可以在中括号里看到你的微信名字。\n```\nContact\u003c李佳芮\u003e login\n```\n除此之外，还能看到你的好友给你发送的消息，比如例子中收到了一条文字(`Text`)类型的消息(`Message`)\n```\nMessage#Text(Contact\u003c高原\u003e Contact\u003c李佳芮\u003e)\u003c你好\u003e\n```\n\n### 4. Puppet 介绍\n\n不同的Puppet是代表的我们对微信协议的不同实现方式，所以请选择一种适合您的选择，本项目默认使用web 协议实现，更详细的介绍参考[Puppet的wiki](https://github.com/Chatie/wechaty/wiki/Puppet)\n\n如果需要ipad实现方式, 请查看 [puppet-padchat](https://github.com/lijiarui/wechaty-puppet-padchat) 介绍并获取[token](https://github.com/lijiarui/wechaty-puppet-padchat/wiki/Buy-Padchat-Token)\n\n切换Puppet的方法是通过设置环境变量实现的，如果使用ipad 协议，需要设置token， 运行命令如下\n```shell\n# 安装 wechaty-puppet-padchat\nnpm install wechaty-puppet-padchat\n# 运行\nWECHATY_PUPPET_PADCHAT_TOKEN=your_padchat_token WECHATY_PUPPET=padchat node examples/ding-dong-bot.js\n```\n\n## 试一试\n![Wechaty Developers' Home](https://chatie.io/wechaty-getting-started/bot-qr-code.png)\n\n回复 'wechaty' 加入 Wechaty 开发者群。\n\u003e 群内均为wechaty 的开发者，如果仅是为了测试功能，请测试后自动退群。为了避免广告及不看文档用户，群主及机器人会T人，不喜勿加。群内发言之前请先阅读文档，谢谢！\n\n## 注意事项\n从2017年6月下旬开始，使用基于web版微信接入方案存在大概率的被限制登陆的可能性。 主要表现为：无法登陆Web 微信，但不影响手机等其他平台。\n验证是否被限制登陆： https://wx.qq.com 上扫码查看是否能登陆。\n更多内容详见： \n- [Can not login with error message: 当前登录环境异常。为了你的帐号安全，暂时不能登录web微信。](https://github.com/Chatie/wechaty/issues/603)\n- [[RUMOR] wechat will close webapi for wechat](https://github.com/Chatie/wechaty/issues/990)\n- [New account login issue](https://github.com/Chatie/wechaty/issues/872)\n- [wechaty-puppet-puppeteer](https://github.com/chatie/wechaty-puppet-puppeteer)\n\n**解决方案：我们提供了非web 版本的解决方案，正在进行alpha 测试，[点击申请测试token](https://github.com/Chatie/wechaty/issues/1296)，技术细节及实现请查看[wechaty-puppet-padchat](https://github.com/lijiarui/wechaty-puppet-padchat)**\n\n## 进阶学习\n\n### 1. Wechaty 视频教学课程\n\n\u003cdiv align=\"center\"\u003e\n\u003ca target=\"_blank\" href=\"https://blog.chatie.io/getting-started-wechaty/\"\u003e\u003cimg src=\"https://cloud.githubusercontent.com/assets/1361891/21722581/3ec957d0-d468-11e6-8888-a91c236e0ba2.jpg\" border=0 width=\"60%\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n请观看这个1分钟的教学视频，帮助你快速了解如何使用wechaty\n\n### 2. 示例代码\n下面的表格解释了examples目录下各个代码的功能\n\n| 文件名称        | 描述 |\n| ---                 | ---         |\n| contact-bot.js      | 展示微信号下所有联系的人微信ID和昵称。|\n| media-file-bot.js   | 将消息中的文件、图片、视频等非文本信息存到本地。 |\n| tuling123-bot.ts    | 接入tuling123 机器人，可以回答任何消息。 |\n\n[点击这里查看 更多Wechaty 官方 示例代码](https://github.com/Chatie/wechaty/tree/master/examples)\n\n## 文档\n\n\u003chttps://qhduan.github.io/wechaty-doc/#/zh/\u003e\n\n## 常见问题 FAQ\n\n### 1. 每次登陆都要扫码么？\n默认情况下，系统可以自动登陆，信息保存在 *.memory-card.json 中\n\n### 2. 支持 红包、转账、朋友圈… 吗？\n以下功能目前 均不支持\n\n支付相关 - 红包、转账、收款 等都不支持\n在群聊中@他人 - 是的，Web 微信中被人@后也不会提醒\n发送名片\n发送分享链接\n发送语音消息 - 后续会支持\n朋友圈相关 - 后续会支持\n\n更多详见 [FAQ-ZH](https://github.com/Chatie/wechaty-getting-started/wiki/FAQ-ZH)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetasu%2Fwxrobotapp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbetasu%2Fwxrobotapp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbetasu%2Fwxrobotapp/lists"}