This is weixin/wechat adapter for hubot.
A config.yaml is provided to set the configuration items
Get config items method
url
Below data are needed and set into config.yaml apporiated fields
maintainerName
webWxSyncInterval
syncCheckInterval
listenOnAllGroups
listenGroupNameList
Other config item: it's simple to know from its meaning and you can check the code for its usage
docker pull kasperdeng/hubot-weixin
logToFile: true
and wxLogPath: "/root/hubot/wxhubot.log"
/home/kasper/dockerHubot/config.yaml
/home/kasper/dockerHubot/scripts
-v
(volume) to map your config file and log file path on your host.
docker run -d -v /home/kasper/dockerHubot/scripts:/root/hubot/scripts -v /home/kasper/dockerHubot/config.yaml:/root/hubot/node_modules/hubot-weixin/config.yaml -v /home/kasper/dockerHubot/wxhubot.log:/root/hubot/wxhubot.log kasperdeng/hubot-weixin
docker run -it -v /home/kasper/dockerHubot/scripts:/root/hubot/scripts -v /home/kasper/dockerHubot/config.yaml:/root/hubot/node_modules/hubot-weixin/config.yaml -v /home/kasper/dockerHubot/wxhubot.log:/root/hubot/wxhubot.log kasperdeng/hubot-weixin /bin/sh
kasperdeng/hubot-weixin
, please refer to Dockfile
hubot-weixin
to hubot's package.jsonnpm install
in your hubot dirbin/hubot -a weixin
npm link <your hubot-weixin dir>
bin/hubot -a weixin
Operations in our Wechat-Hubot
The coffeescript version's WxChat Web APIs
The http layer, including sync and async
constructor
send
reply
run
@emit 'connected'
npm install
to get all the node modules
--registry=https://registry.npm.taobao.org
msg
in the scripts provides the http asycn function to get your data from open APIsbumblebee team