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

go-cqhttp-jsbot

v1.0.5

Published

基于 go-cqhttp 框架进行二次封装的 sdk 开发包,主要方便直接进行机器人的操作。

Downloads

12

Readme

go-cqhttp-jsbot node.js API更新记录

文档可参考官方文档,基本以官方数据以及 API 命名方法 更新内容 api 示例使用方法可参考 test.js 代码

基本使用方式:

// 引入平台 SDK
const BotSDK = require('./go-cqhttp-jsbot.js').BotSDK
// 实例化一个平台,框架地址,反向上报端口
const botSDK = new BotSDK('localhost', 8888);
// 创建一个监听 bot 对象(已挂载至框架内的 qq),正向端口
let bot = botSDK.createBot('123456789', 52566);
// -------------
... 可在 test.js 里参照 api 示例使用 bot.xxx 形式注册或调用相关指令功能。
// -------------

v1.0.5

  • 修复使用自定义 http 请求不返回数据问题
  • 所有 bot 调用的功能均能返回创建请求的 promise 对象,如需返回值可继续使用 then 或者 await 获取返回值内容
  • 主动请求 API 基本上以官方文档请求终结点的驼峰命名,部分可能有所区别

v1.0.4

  • 实例机器人添加 CQCode 生成方法如 bot.CQCode.At('123456789')
  • 修复被艾特时没有判断正确的问题

v1.0.0

  • 完成主程序框架的逻辑封装,实现消息分发
  • 封装 bot 操作 api 支持统一事件、私聊、群聊消息监听
  • 支持快速鉴定指定群消息,自定义快捷指令
  • 实现发送私聊,群私聊,群聊
  • 当前仅完成一些常用方法,许多其他事件没有还没有处理好分发,其他请求操作可以根据官方文档使用内置 http 请求完成 post 请求
  • 本人代码水平不高,会尽力去完善,有问题或者可以改善的地方还请多多指教