Git Product home page Git Product logo

icqq's Introduction

icqq

npm version dm node engine group:860669870 discord

  • QQ(安卓)协议基于 Node.js 的实现,支持最低node版本为 v14
  • 若你不熟悉 Node.js 或不会组织代码,可通过 template 创建一个简单的应用程序
  • Type Docs(文档仅供参考,具体类型以包内d.ts声明文件为准)
  • 从 OICQ v1.x 升级(v1 在 OICQ 的 master 分支)
  • 如果你仍在使用 OICQ v1.x,又不想升级,可以使用 oicq-icalingua-plus-plus

ICQQ 是 OICQ 的分支。ICQQ 的存在少不了 OICQ 作者 takayama-lily 与 OICQ 的其它贡献者们,在此特别鸣谢!


与oicq2的差异

  • createClient将不再传递uin,改为在login时传入,如果你希望密码登录,请一定参考密码登录教程
  • 支持频道(基础的消息收发能力)
  • 支持群精华消息的添加和移除
  • 消息类型添加ForwardElem
  • 支持监听指定群/好友的消息

安装:

> npm i icqq  # or > yarn add icqq

快速上手:

const { createClient } = require("icqq")
const client = createClient({platform:3})

client.on("system.online", () => console.log("Logged in!"))
client.on("message", e => {
  console.log(e)
  e.reply("hello world", true) //true表示引用对方的消息
})

client.on("system.login.qrcode", function (e) {
  //扫码后按回车登录
  process.stdin.once("data", () => {
    this.login()
  })
}).login()

注意:

  • 扫码登录仅能使用Watch协议登录下进行,如需扫码登陆,请在creatClient时按照上方示例代码传入platform,其他协议暂时无法登陆
  • 建议使用密码登录,只需验证一次设备便长期有效 密码登录教程

声明:

  • 本项目为协议实现,不推荐直接使用。

  • 想开发机器人的新用户推荐使用zhin框架开发。

  • CQHTTP 用户建议使用onebots,该项目同时支持OneBot V11 和OneBot V12。

  • 云崽用户想迁移到icqq,可参考Miao-Yunzai,该分支使用icqq来代替oicq

鸣谢:

其他:

icqq's People

Contributors

takayama-lily avatar lc-cn avatar xfdown avatar github-actions[bot] avatar dmlgzs avatar thesnowfield avatar cloud370 avatar clansty avatar steve-xmh avatar goodspeed34 avatar dawnnights avatar yohnzhu avatar nonusx avatar lz1998 avatar ltxhhz avatar yanyunwu avatar nk-ava avatar teriri7 avatar icalinguaplusplus avatar simonshiki avatar magren0321 avatar yoimiya-kokomi avatar juergenie avatar kamenomi-dev avatar 885228438 avatar 14kay avatar

Stargazers

Kernel Jackson avatar SakuraKooi 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.