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-auto-exit-group

v0.0.2

Published

自动退出未设置群号的群(仅限onebot平台)

Downloads

85

Readme

koishi-plugin-auto-exit-group

npm

自动退出未设置群号的群(仅限 OneBot 平台)

功能

  • 定时检查机器人所在的群列表
  • 自动退出不在白名单中的群
  • 支持多个 OneBot 适配器实例
  • 启动时立即执行一次检查
  • 提供手动检查命令

配置项

| 配置项 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | allowedGroups | string[] | [] | 允许保留的群号列表(白名单) | | interval | number | 60 | 检查间隔时间(分钟),最小值为 1 | | enabled | boolean | true | 是否启用自动退群功能 |

使用方法

1. 配置白名单

在 Koishi 控制台的插件配置中,将需要保留的群号添加到 allowedGroups 配置项中。

2. 启用插件

确保 enabled 配置项为 true。

3. 设置检查间隔

根据需要设置 interval,默认为 60 分钟检查一次。

命令

| 命令 | 说明 | | --- | --- | | auto-exit/check | 手动触发检查并退出不在白名单的群 | | auto-exit/whitelist | 查看当前白名单群列表 |

注意事项

  1. 仅支持 OneBot 平台:本插件仅适用于 OneBot(如 go-cqhttp、NapCat 等)适配器。
  2. 谨慎配置白名单:如果白名单为空,机器人将退出所有群!请在启用前确认白名单配置正确。
  3. 权限要求:机器人需要有退出群聊的权限。
  4. 日志查看:可以通过查看 Koishi 控制台的日志了解退群情况。

示例配置

plugins:
  auto-exit-group:
    allowedGroups:
      - '123456789'
      - '987654321'
    interval: 30
    enabled: true

许可证

MIT License