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

ioqq

v1.0.0

Published

通过js代码调用QQ的模块,实现QQ机器人功能

Downloads

19

Readme

ioqq上手指南

ioqq为调用酷Q 的 DLL 接口来操作qq,从而使qq可通过编程编写成qq机器人的API库。 酷Q安装环境可使用ioqq提供的命令一键安装及运行。

前提环境

也可以直接安装酷Q,不过建议安装docker,便于使用ioqq管理酷Q环境

环境安装

1、安装ioqq模块

运行 npm install ioqq

2、安装并运行酷Q

运行 npm explore ioqq -- npm run docker:up

运行npm explore ioqq -- npm run docker:stop,可以停止运行docker的酷Q容器 运行npm explore ioqq -- npm run docker:down,可以停止并删除docker的酷Q容器

3、配置酷Q,登录希望被程序控制的QQ

  • 使用浏览器进入127.0.0.1:9000地址

  • 输入默认密码: PAsSwoRd, 点击Send Password按钮

  • 输入qq账号和密码,建议使用小号(Q龄尽量别太小),登录的QQ需要开启安全设备锁。

  • 填写正确qq号及密码并点击确定按钮后,会提示安全验证(没开启设备锁的同学,会被提示要求开启设备锁),点击,输入正确验证码后,点击确定

  • 成功在酷Q上登录qq

使用方法

  • 手动创建test.js文件后,复制以下代码:
var { Rest } = require("ioqq");

var rest = new Rest("http://127.0.0.1:5700");
rest.sendPrivateMessage(123456, `测试的消息,t=${Date.now()}`);

Rest中的http://127.0.0.1:5700"为默认http接口地址 sendPrivateMessage为给指定好友发送私有消息,其中第一个参数为对方QQ号码

  • 运行 node test

  • 运行结果

以上就是安装及使用ioqq的教程,其他详细信息,请参考ioqq项目说明。

常用方法

  • sendGroupMessage 发送Q群消息

  • sendPrivateMessage 发送个人消息

  • getGroupList 获取所有已加入Q群的信息