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-memes-poke

v0.2.3

Published

戳一戳响应 memes-api,返回 meme 图

Readme

koishi-plugin-memes-poke

koishi

一个戳一戳响应插件,可以与 koishi-plugin-memes-api 联动,并提供丰富的自定义戳一戳响应功能。

✨ 功能

  • 戳一戳响应:当机器人被用户戳一戳时,会根据配置随机触发一个响应。
  • 表情包联动:可以随机触发 meme.random 系列命令,生成沙雕图。
  • 高度自定义
    • 支持添加任意数量的自定义纯文本作为响应。
    • 支持添加任意数量的自定义命令作为响应。
  • 权重系统:所有响应(包括内置表情包、自定义文本和自定义命令)都支持自定义权重,让您可以精确控制每种响应的触发概率。
  • 🆕 冷却时间:支持设置戳一戳响应的冷却时间,防止过度触发。
  • 🆕 分群配置:支持为不同的群组设置不同的插件配置,实现精细化管理。

⚙️ 配置项

插件提供了丰富的配置项,让您可以自由定制戳一戳的响应方式。

  • memeResponses: 内置表情包命令响应列表(表格形式),支持四种类型:
    • 随机(用户头像): 调用 meme.random,使用戳人头像生成随机表情
    • 随机(用户昵称文本): 调用 meme.random <戳人昵称>,将戳人昵称作为文本生成随机表情
    • 随机(默认文本): 调用 meme.random,使用表情默认文本(与第一项相同,可用于增加权重)
    • 随机(bot+用户头像): 调用 meme.random @bot @poker,使用 bot 和戳人的双头像生成随机表情
    • 每个类型都可独立设置是否启用和权重
  • textResponses: 自定义纯文本响应列表(表格形式),可为每条文本独立设置权重。
  • commandResponses: 自定义命令响应列表(表格形式),可为每条命令独立设置权重。
  • pokeCooldown: 戳一戳响应的冷却时间(秒),默认为5秒。设置为0可禁用冷却时间。

分群配置

插件支持为不同的群组设置独立的完整配置。配置分为两部分:

默认配置

设置适用于所有群组的默认参数。未在分群配置中指定的群组将使用这些默认值。

分群配置列表

可以添加多个特定群组的配置,每个配置包含:

  • 群组ID:要应用此配置的群组ID
  • 所有配置选项:与默认配置相同的全套选项

使用步骤:

  1. 设置默认配置:配置所有群组的默认行为
  2. 添加分群配置
    • 点击「添加分群配置」
    • 填入群组ID
    • 设置该群组的专属配置
  3. 优先级规则:如果群组有专门配置,优先使用分群配置;否则使用默认配置

配置示例:

  • 默认配置
    • 冷却时间:5秒
    • 启用所有功能
  • 群组 123456789
    • 冷却时间:10秒(更严格)
    • 禁用随机用户功能
  • 群组 987654321
    • 冷却时间:0秒(无限制)
    • 只启用纯文本响应

这样可以为每个群组精确定制所有功能,实现完全独立的配置管理。

📝 使用说明

在 Koishi 插件市场搜索并安装本插件,然后在插件配置页面根据您的需求进行设置即可。