Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
微信公共帐号自动回复机器人
branch: master

This branch is 203 commits behind node-webot:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
examples
lib
test
.gitignore
README.md
index.js
package.json

README.md

微信公共帐号机器人(Weixin Robot)

微信公众平台提供的开放信息接口的自动回复系统,基于node.js 实现。

功能:

  1. 清晰独立的 router ,轻松实现文本匹配流程控制
  2. 基于正则表达式的对话设定,配置简单,可以给一句话随机回复不同内容
  3. 支持等待后续操作模式,如可以提示用户“需要我执行xxx操作吗?”

添加微信帐号 douban-event ,试试效果

豆瓣同城微信帐号二维码:douban-event

使用方法:

可通过 npm 安装:

npm install weixin-robot

具体使用方法参见 exapmles/app.js

提供可执行文件 webot 用于发送测试消息。

  Usage: webot [options]

  Options:

    -h, --help                 output usage information
    -V, --version              output the version number
    -l, --location             Send a <location> (geo, latlng)
    -t, --token [value]        Provide weixin token
    -n, --host [value]         Set request hostname, defaults to 127.0.0.1
    -p, --port <n>             The port your service is listening to, defaults to 3000
    -d, --destination [value]  The request destination url, will override "host" and "port"

Have fun with weixin, enjoy being a robot!

LICENSE

(the DON'T CARE WHAT YOU DO WITH IT license)

Something went wrong with that request. Please try again.