A Hubot adapter for QQ! And also A independence robot lives on the real world.
FYI: QQ is a instant messaging service widely used in china provided by Tencent.
基于WebQQ协议的QQ机器人。命令行工具,由不可思议的CoffeeScript提供支持。
DEMO 调戏用(测试和交流)QQ群:346167134
你可以用TA来
hubot-qq
as a dependency in your hubots package.json
npm install
in your hubots directorybin/hubot -a qq
Configurable Variables
HUBOT_QQ_ID #QQ ID
HUBOT_QQ_PASS #password
HUBOT_QQ_GROUP #group name that hubot listens to
HUBOT_QQ_IMGPORT #the port to serve verify-codes
#for more debug variables plz check src/hubot-qq source file
On LINUX or OSX use export VARIABLE=VALUE
to set environment variables.
sudo npm install -g coffee-script
安装 CoffeeScript
npm install
更新依赖config.yaml
./main.coffee
让你的机器人躁起来~部署环境下请确保你的机器人是不需要验证码登录的,否则可能会无法长时间在线
我常用的命令 ./main.coffee nologin &>> tmp/dev.log &
, 也可以使用进程管理工具比如 pm2
更省心
TODO GET http://localhost:port/stdin?token=(token)&value=(value)
https://github.com/xhan/qqbot/blob/master/CHANGELOG.md