{"id":19035497,"url":"https://github.com/node-webot/webot-example","last_synced_at":"2025-08-20T18:33:01.330Z","repository":{"id":7749375,"uuid":"9116761","full_name":"node-webot/webot-example","owner":"node-webot","description":"Example usage of weixin-robot","archived":false,"fork":false,"pushed_at":"2014-02-15T15:27:08.000Z","size":424,"stargazers_count":104,"open_issues_count":1,"forks_count":141,"subscribers_count":23,"default_branch":"master","last_synced_at":"2024-04-15T11:24:01.874Z","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/node-webot.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}},"created_at":"2013-03-30T14:10:03.000Z","updated_at":"2024-02-29T08:23:29.000Z","dependencies_parsed_at":"2022-09-11T21:10:46.892Z","dependency_job_id":null,"html_url":"https://github.com/node-webot/webot-example","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/node-webot%2Fwebot-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-webot%2Fwebot-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-webot%2Fwebot-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/node-webot%2Fwebot-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/node-webot","download_url":"https://codeload.github.com/node-webot/webot-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229869736,"owners_count":18136931,"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-08T21:51:00.471Z","updated_at":"2024-12-19T14:07:21.176Z","avatar_url":"https://github.com/node-webot.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [微信公共帐号机器人](https://github.com/node-webot/weixin-robot)示例 [![Build Status](https://api.travis-ci.org/node-webot/webot-example.png?branch=master)](https://travis-ci.org/node-webot/webot-example)\n\n## 本地运行\n\n```bash\ngit clone https://github.com/node-webot/webot-example.git\ncd webot-example/\nnpm install\nmake start\n```\n\n其中，`make start` 命令会调用 `node app.js` 。\n建议你 fork 一份自己的版本，这样你就可以任意做出更改和调试了。\n\n\n## 消息调试\n\n使用 `webot-cli` [命令行工具](https://github.com/node-webot/webot-cli)来发送测试消息。\n\n安装：\n\n```bash\nnpm install webot-cli -g\n```\n\n`npm install -g` 代表全局安装 npm 模块，你可能需要 `sudo` 权限。\n\n使用：\n\n```\nwebot help            # 查看使用帮助\nwebot send Hello      # 发送一条叫「Hello」的消息\nwebot send image      # 调试图片消息\nwebot send location   # 调试地理位置\nwebot send event      # 调试事件消息\n```\n\n`webot-cli` 默认访问的接口地址是 http://127.0.0.1:3000 ，要调试本示例的程序，\n你需要指定 `webot send --des http://127.0.0.1:3000/wechat'\n\n\n## 在微信上试用此示例\n\n- 微信账号：webot-test\n\n![qrcode: webot-test](https://raw.github.com/node-webot/webot-example/master/qrcode.jpg)\n\n# 搭建你自己的机器人\n\n1. fork 本仓库，修改 package.json 里的各项属性\n2. 修改你自己的 app.js ，填写你在微信后台输入的 token \n3. 参考 rules/index.js ，新建你自己的回复规则\n\n## 发布到云平台\n\n仓库中的 `Procfile` 为 [heroku](http://www.heroku.com/) 的配置文件。\n`manifest.yml` 为 [cloudfoundry](http://www.cloudfoundry.com/) 的示例配置文件。\n\n# Credit\n\n[weixin-robot](https://github.com/node-webot/weixin-robot) 的[初始版本](https://github.com/node-webot/weixin-robot/tree/0.0.x)由[@ktmud](https://github.com/ktmud)实现，\n[@atian](https://github.com/atian25)重构并扩展为 0.2 版本。目前的测试用例也大部分由他完成。\n\n[weixin-robot] 使用了 [@JacksonTian](https://github.com/JacksonTian) 的 [wechat](https://github.com/node-webot/wechat) 组件。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-webot%2Fwebot-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnode-webot%2Fwebot-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnode-webot%2Fwebot-example/lists"}