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

@pupbot/core

v1.0.31

Published

QQ机器人框架,基于 icqq v0.3

Downloads

15

Readme

downloads npm GitHub

PupBot 是使用 TypeScript 语言编写的轻量优雅跨平台开发者友好的 QQ 机器人框架。

框架完全开源,可扩展性强,插件开发简单,核心底层协议使用 oicq v2,API 众多,功能强大。另外,框架使用 node 驱动,得益于 node 及其高效的 v8 引擎,PupBot 的性能可观。

特性

  • 轻量: 无需运行 UI,内存占用低。

  • 高效: 框架依赖少,执行效率高。

  • 跨平台: Windows, Linux, Android 等都能运行。

  • 多协议: 支持安卓手机、安卓平板、iPad、安卓手表和 MacOS 协议。

  • 注重体验: 使用 消息指令 执行操作、启用或升级插件。

  • 极速开发: 学习门槛低,只需几行 JS/TS 代码就能编写插件。

  • 开发者友好: 插件支持热重载,拥有友好的Plugin API。

开箱即用

框架提供了状态监控、插件管理、管理员机制、消息通知、请求处理功能,开箱即用。

插件示例

仅需编写少量 JavaScript 代码即可实现丰富功能,参考下面的 demo。

::: tip 请注意 框架仍处于测试阶段,插件的 API 会不断完善,请留意文档更新。 :::

const { PupPlugin, segment } = require('@pupbot/core')
const plugin = new PupPlugin('demo', '0.1.0')
plugin.onMounted(() => {
  plugin.onMessage(event => {
    const { raw_message } = event
    if (raw_message === 'hello') {
      const msgs = [segment.face(66), 'world']
      event.reply(msgs)
    }
  })
})
module.exports = { plugin }

详细插件 API 说明请参阅 PupPlugin API 详细Bot API 说明请参阅 Bot API

快速起步

前往文档

使用协议

Pupbot 使用 MIT 协议开源,维护良好的开源生态从我做起 (*>ω<)φ

Copyright © 2023-RENCENT @Pupbotjs/core

FOSSA Status

更多

PupBot 由整个开源社区维护,并不是属于某个个体的作品,所有贡献者都享有其作品的著作权。

本项目开发初衷在于提高群活跃氛围、方便群管理,仅供个人娱乐、学习和交流使用,不得将本项目用于任何非法用途