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 🙏

© 2025 – Pkg Stats / Ryan Hefner

koishi-plugin-poke

v0.4.1

Published

自定义戳一戳事件响应,仅兼容OneBot平台。

Downloads

48

Readme

koishi-plugin-poke

npm

戳一戳

仅兼容 OneBot 平台,支持 Lagrange.OneBotNapCat

最新版本NapCat支持主动发起戳一戳,请及时更新

主动发起

NapCat支持主动发起戳一戳,需要配置 PacketServer

命令格式:poke @user

如果没有指定用户,默认戳自己,支持私聊和群聊

响应配置

Lagrange.OneBot 和 NapCat 均支持响应戳一戳事件

使用方法

当前支持两种模式

  1. 命令模式:执行指定命令,可指定触发概率,默认 50%
  2. 消息模式:发送随机消息,可指定每条消息的权重,默认 50

高级用法

  • 命令模式为轻度用户设计,如需更复杂的用法,请使用消息模式
  • 消息模式不仅支持发送消息,还支持发送标准元素消息组件
  • 使用<at id={userId}/> 可以插入@用户userId属性将会自动替换
  • 使用<at id={targetId}/> 可以插入@被戳用户targetId属性将会自动替换
  • 支持替换的属性可以查看Session文档
  • 使用消息模式随机触发机制,可以使用<execute>status</execute>执行不同的命令
  • 使用<execute>poke <at id={userId}/></execute>可以回戳
  • 也可以简写成<execute>poke</execute>
  • 直接使用命令模式更方便

特别说明

戳一戳事件具有targetId属性,表示被戳的用户,可以通过<at id={targetId}/>插入

关闭filter选项后,将会响应所有戳一戳事件,即使被戳的不是自己

配合filter选项,即可使用下面的示例

<at id={userId}/> 戳了一下 <at id={targetId}/>