npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ntqq

v0.0.3

Published

QQ protocol for NodeJS!

Downloads

5

Readme

ntqq

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

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


与oicq2的差异

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

安装:

> npm i ntqq  # or > yarn add ntqq

快速上手:

const { createClient } = require("ntqq")
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。
  • 云崽用户想迁移到ntqq,可参考Miao-Yunzai,该分支使用ntqq来代替oicq

鸣谢:

其他: