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

pupbot-plugin-random-image

v0.1.6

Published

二次元/三次元美图随机发送

Readme

二次元/三次元美图随机发送 | pupbot-plugin-random-image

安装

/plugin add random-image

启用

/plugin on random-image

指令(默认)

  • 来张图 -> 来一张图

配置文件详解

{
    // 命令冷却时间(秒) (#默认如下)
    'cd': 0

    // 冷却模式 (#默认如下)
    // wait -> 等待图片撤回后计时(#默认), <其他> -> 发送后立即开始计时
    'cdmod': 'wait'

    // 处于cd时发送的内容 ('{time}'会自动替换为剩余时间秒数) (#默认如下)
    'cdstring': '太...太快啦! 等我{time}秒行不行?AwQ'

    // 可使用人群(不区分大小写)
    // admins -> 所有管理员(#默认), mainadmin -> 主管理员, <其他> -> 所有人
    'use-permisson': 'admins',
    
    // 撤回时间 (-1~120秒) -1 -> 不撤回 (#默认90秒) 
    // *时间可能比实际略短, 因为获取图片需要时间
    'recall-time': 90,

    // api 数组, api 应当直接跳转图片直链 (#默认详解配置文件)
    'random-api': [],
    
    // 触发词 (#默认如下)
    'command': [  
        '来张图'
    ]
}

问题 / 不合理设定 (√代表已修复)

  • [x] 在等待撤回等待期间会阻塞主线程导致消息无法发送
  • [x] 剩余时间显示过长(位数保留过多)
  • [x] 高并发场景cd时间大概率失效

新增功能

  • V0.1.1 增加了cd(冷却时间)功能~ | 2023-02-03 21:03:02
  • V0.1.2 新增cd时间显示适配撤回时间 | 2023-02-03 21:53:40
  • V0.1.3 修复 剩余时间算法错误 的问题 | 2023-02-04 13:02:12
  • V0.1.4 修复bug | 2023-02-04 14:24:20
  • V0.1.5 新增多个图片api | 2023-02-04 18:28:11
  • V0.1.6 修复高并发场景cd时间大概率失效的问题 | 2023-02-05 17:13:54