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 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-qq-ban

v0.1.1

Published

Koishi plugin that mutes and unmutes QQ group members through the QQ official bot adapter.

Readme

koishi-plugin-qq-ban

Koishi — QQ 官方机器人群成员指令禁言插件。

AI-Crap

功能

  • ban @某人 <时长> 禁言群成员,时长支持中英文常见写法与多段累加
  • unban @某人 解除禁言
  • i18n

前置条件

  1. 已启用支持群禁言的 QQ 官方机器人适配器(如 koishi-plugin-adapter-qq-crack)。
  2. 机器人已被添加为该群的管理员。
  3. 已启用 commands 插件。

安装

npm i koishi-plugin-qq-ban

或:

yarn add koishi-plugin-qq-ban

Koishi 配置

plugins:
  group:basic:
    commands: {}
    qq-ban:
      minAuthority: 3
      maxDuration: 2592000

| 配置项 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | minAuthority | number | 3 | 调用指令所需的最低权限等级 | | maxDuration | number | 2592000 | 允许的最大禁言时长(秒),QQ 官方限制为 30 天;超出按此值处理 |

使用

ban @某人 10分钟      # 时长支持中文
ban @某人 600         # 纯数字按秒
ban @某人 1小时30分    # 多段累加
ban @某人 2h          # 英文缩写
ban @某人 1 day       # 英文全称
unban @某人           # 解除禁言

时长写法

| 单位 | 可写 | 折算 | | --- | --- | --- | | 年 | 年 y yr year(s) | 365 天 | | 月 | 月 个月 mo month(s) | 30 天 | | 周 | 周 星期 礼拜 w week(s) | 7 天 | | 天 | 天 日 d day(s) | 24 小时 | | 小时 | 时 小时 个小时 h hr(s) hour(s) | 60 分钟 | | 分钟 | 分 分钟 m min(s) minute(s) | 60 秒 | | 秒 | 秒 秒钟 s sec(s) second(s) | 1 秒 |

补充规则:

  • 不带单位时按秒处理(600 即 600 秒)
  • 多段会累加,可用空格或 ,,/ 分隔:1d2h30m、1小时30分、1 hour and 30 minutes
  • 支持中文数字与「半」:五分钟、两小时、半小时、半天
  • 大小写不敏感

注意事项

本插件仅封装机器人的群管理能力,使用请遵守所在群规与当地法律法规。