hubot-another-wechat

0.1.1 • Public • Published

Another Hubot Wechat Adapter

REF: https://github.com/eatgrass/hubot-wechat

Quickstart:

Existing install

  1. Install wechat adapter:

     % cd myhubot
     % npm install hubot-another-wechat --save
    
  2. You will need to set configuration variables in your environment for wechat account

    indicate your hubot to use another-wechat as adapter, you can also run bin/hubot -a another-wechat

     HUBOT_ADAPTER=another-wechat
    

    Below properties are required, you can get these properties by capturing webwxinit request in your browser

     HUBOT_WX_COOKIE
     HUBOT_WX_UIN
     HUBOT_WX_SID
     HUBOT_WX_SKEY
     HUBOT_WX_DEVICE_ID
    
  3. Run your robot with

     % myhubot/bin/hubot -a another-wechat
    

Start with PM2

  1. install pm2 npm install pm2 -g

  2. copy the process.json

  3. specify your configuration in your process.json

  4. 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

Readme

Keywords

none

Package Sidebar

Install

npm i hubot-another-wechat

Weekly Downloads

2

Version

0.1.1

License

MIT

Last publish

Collaborators

  • xjimmyshcn