Giter Site home page Giter Site logo

oicq's Introduction

oicq

npm version node engine Gitter bug反馈群

  • QQ(安卓)协议的nodejs实现。也参考了一些其他开源仓库如miraimiraiGo等。
  • 以高效和稳定为第一目的,在此基础上不断完善,将会逐步支持手机协议的大部分功能。
  • 使用 酷Q和CQHTTP 风格的API、事件和参数,原生支持经典的CQ码。
  • 请使用 Nodejs 12.16 以上版本。有bug请告诉我。

Install:

# npm i oicq

Example:

const { createClient } = require("oicq");
const uin = 123456789; // your account
const bot = createClient(uin);

//监听并输入滑动验证码ticket
bot.on("system.login.slider", (data) => {
  process.stdin.once("data", (input) => {
    bot.sliderLogin(input);
  });
});

bot.on("message", (data) => {
  if (data.group_id > 0)
    bot.sendGroupMsg(data.group_id, "hello");
  else
    bot.sendPrivateMsg(data.user_id, "hello");
});

bot.login("password"); // your password or password_md5

如何获得滑动验证码ticket
更详细的例子可以参考 demo.js
API简洁友好,开箱即用,熟悉Nodejs者建议直接引入依赖进行开发。
其他语言的使用者可以用 http-api 搭建环境。

相关文档:

wiki

oicq's People

Contributors

takayama-lily avatar

Watchers

 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.