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-group-todo

v0.1.2

Published

QQ 群待办插件,面向 NapCat 场景的群内任务记录与提醒

Readme

koishi-plugin-auto-group-todo

QQ群待办插件,面向 NapCat 场景,支持把一条群消息设置为可选开始/结束 cron 的群待办。

前提

  • 运行环境需要能调用 NapCat OneBot API。
  • 插件依赖 Koishi database 服务。
  • 如果要使用 --start--end,还需要启用 cron 服务。

插件会调用以下 NapCat API:

  • set_group_todo
  • cancel_group_todo
  • get_group_member_info

命令

设置群待办

用法:

设置群待办 [--start <cron>] [--end <cron>]

规则:

  • 只能在群聊中使用。
  • 必须引用一条消息。
  • 只有群主和管理员可以使用。
  • --start--end 都使用 cron 表达式。
  • 不传 --start 时,立即调用一次 set_group_todo
  • 不传 --end 时,不自动结束。
  • 同一群内同一条消息只能被本插件创建一次。

示例:

设置群待办
设置群待办 --start "0 9 * * *"
设置群待办 --start "0 9 * * *" --end "0 18 * * *"

列出群待办

用法:

列出群待办 [msg_id]

规则:

  • 不传 msg_id 且不引用消息时,列出当前群全部记录的 todoId、开始时间、结束时间。
  • 传入 msg_id 时,查询当前群指定消息对应的记录。
  • 不传 msg_id 但引用了一条消息时,按被引用消息查询。
  • 只列出本插件管理的记录。

删除群待办

用法:

删除群待办 [todoId...]

规则:

  • 只能在群聊中使用。
  • 只有群主和管理员可以使用。
  • 支持一次传多个 todoId
  • 传了 todoId 时,按内部 ID 删除。
  • 没传 todoId 时,必须引用一条消息,并按该消息对应记录删除。
  • 删除时会先调用 cancel_group_todo,成功后再删除插件内记录和定时任务。

示例:

删除群待办 1
删除群待办 1 2 3

数据与调度

插件仅持久化以下字段:

  • id
  • groupId
  • messageId
  • startCron
  • endCron

启动时会从数据库恢复记录,并重建开始/结束定时任务。

错误处理

  • 所有用法错误都会返回“错误原因 + 正确用法”。
  • 如果当前会话缺少可用 OneBot 能力,管理员校验或 API 调用会失败。
  • 恢复定时任务时如果某条记录注册失败,插件会记录警告并继续恢复后续记录。