Git Product home page Git Product logo

hubot-weixin-tool's Introduction

Hubot weixin tool

微信hubot机器人一键化工具

安装

  • python2
  • curl
  • hubot
$ npm install -g yo generator-hubot
  • requirements.txt
$ pip install -r requrements.txt
# 确保安装成功
$ python -c 'import qrtools;import pyqrcode'
# 在osx上zbar的安装之后import时出现segment fault 11问题, 请使用zbar.sh安装

配置hubot

  • 生成自己的hubot
$ mkdir myhubot
$ cd myhubot
$ yo hubot
  • 在package.json中添加weixin依赖
"hubot-weixin": "1.0.6"
  • 运行npm install
  • 给hubot-weixin打补丁
# https://github.com/KasperDeng/Hubot-WeChat/pull/16/commits/fba2d7c2b37b282fdf0ebb0ae77028f7f6435d45
$ cd node_modules/hubot-weixin
$ wget https://github.com/KasperDeng/Hubot-WeChat/commit/fba2d7c2b37b282fdf0ebb0ae77028f7f6435d45.diff
$ cd patch -p1 < fba2d7c2b37b282fdf0ebb0ae77028f7f6435d45.diff
  • 将run.py拷贝到hubot目录下
  • 写自己的hubot脚本放置到scripts下面, 参考hubot-scripts。scripts有个例子。
  • 运行启动脚本run.py,按提示操作即可

大致流程

  1. 获取微信登录二维码
  2. 下载二维码
  3. 转换二维码到终端
  4. 【人工】扫描二维码
  5. 从response截取用户信息,替换配置文件
  6. 启动hubot -a weixin

参考

hubot-weixin-tool's People

Contributors

fdwills avatar

Stargazers

zhaohaolin avatar Zollty Tsou avatar AbleCloud Team avatar Randy Guo avatar Jimmy Xu avatar 史蒂芬孙 avatar Sang Mingming avatar ElseZhang avatar  avatar Killua.VX avatar  avatar

Watchers

James Cloos avatar  avatar

hubot-weixin-tool's Issues

缺少requirements.txt

是否漏提交了?
此外zbar在centos上安装失败 zbarmodule.h:26:18: fatal error: zbar.h: No such file or directory有无办法?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.