Skip to content

ozdroid/weixin-robot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

144 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

微信公共帐号机器人(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)

About

微信公共帐号自动回复机器人

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors