hubot-wechat2
v1.1.0
Published
hubot wechat adapter
Downloads
3
Readme
Hubot Wechat Adapter
Quickstart:
Existing install
Install wechat adapter:
% cd myhubot % npm install hubot-wechat2 --save
You will need to set configuration variables in your environment for wechat account
indicate your hubot to use
wechat2
as adapter, you can also runbin/hubot -a wechat2
HUBOT_ADAPTER=wechat2
Below properties are required, you can get these properties by capturing
webwxinit
request in your browserHUBOT_WX_COOKIE HUBOT_WX_UIN HUBOT_WX_SID HUBOT_WX_SKEY HUBOT_WX_DEVICE_ID
Run your robot with
% myhubot/bin/hubot -a wechat2
Start with PM2
install pm2
npm install pm2 -g
copy the
process.json
specify your configuration in your
process.json
start 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