qq机器人(coffeescript),支持hubot
发布于 1年前 作者 xhan00 1394 次浏览

项目地址 https://github.com/xhan/qqbot

QQBot

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

Acts as Hubot Adapter

  • Add hubot-qq as a dependency in your hubots package.json
  • Run npm install in your hubots directory
  • Run hubot with bin/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.

Acts as independence robot

  • Install CoffeeScript in global by npm install coffeescript -g
  • Run npm install to update dependencies
  • Make your own copy of config.yaml
  • Run ./main.coffee to keep your bot alive!

功能 Features

  • :muscle: 登录(支持验证码)
  • :muscle: 监听并派发收到的qq消息,支持群,好友消息
  • :muscle: 插件化,目前支持消息的派发
  • :muscle: 可作为hubot adapter使用
回到顶部