Giter Site home page Giter Site logo

wqq's Introduction

wqq

基于 http://w.qq.com v=20130916001 webqq协议 的api模块

类似的项目 qqbot, webqq-client, Webqq-Client(Perl)

基于wqq开发的一个qq命令行 qqlog

$ npm install wqq
var QQ = require('wqq')
var qq = new QQ()
qq.getVcode(qqnum, function (err, buffer) {
  // 如果需要的话 buffer为验证码图片 一般不会出现
  qq.login(qqpsw, vcode || '', function (err, nick) {
    qq.on('disconnect', function () { exit() })
    qq.on('message', function (msg) { log(msg) })
    qq.startPoll()
  })
})
// 实现"qq鹦鹉" 跟人说话 :)
qq.on('message', function (msg) {
  var method = msg.group_name ? 'sendGroupMsg' :
    msg.dicus_name ? 'sendDicusMsg' :
    msg.is_private ? 'sendBuddyMsg' : null
  if (method) {
    qq[method](msg.from_uin, msg.content, function(err, ok){})
  }
})

功能

  • 获取验证码/登录/改变状态
  • 开启/中断消息轮训
  • 识别单人/群/群匿名/讨论组消息/文件
  • 识别消息中的文本/图片/emoji
  • 识别发送者的昵称/群昵称/备注
  • 获取单人/群/讨论组资料
  • 发送单人/群/讨论组消息

待完善

  • 呈现/发送图片
  • 呈现/发送文件
  • 呈现qq表情语义(请使用qqface)

webqq即将废弃

关闭qq设备锁 才能正常登录

百度经验:手机qq设备锁怎么解除

wqq's People

Contributors

fritx avatar

Watchers

 avatar  avatar  avatar

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.