0.1.1 • Published 8 years ago
hubot-another-wechat v0.1.1
Another Hubot Wechat Adapter
REF: https://github.com/eatgrass/hubot-wechat
Quickstart:
Existing install
Install wechat adapter:
% cd myhubot % npm install hubot-another-wechat --saveYou will need to set configuration variables in your environment for wechat account
indicate your hubot to use
another-wechatas adapter, you can also runbin/hubot -a another-wechatHUBOT_ADAPTER=another-wechatBelow properties are required, you can get these properties by capturing
webwxinitrequest in your browserHUBOT_WX_COOKIE HUBOT_WX_UIN HUBOT_WX_SID HUBOT_WX_SKEY HUBOT_WX_DEVICE_IDRun your robot with
% myhubot/bin/hubot -a another-wechat
Start with PM2
install pm2
npm install pm2 -gcopy the
process.jsonspecify your configuration in your
process.jsonstart with
pm2 startOrRestart process.json
Options
| Environment Variable | Default | Description |
|---|---|---|
| HUBOT_WX_ACCEPT_FRIEND | false | Auto accept frient request |
| HUBOT_WX_IGNORE_GROUP | false | Ignore message from group |