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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dgck81lnn/koishi-plugin-derpi

v0.1.3

Published

Random Derpibooru images for koishi

Downloads

76

Readme

@dgck81lnn/koishi-plugin-derpi

npm

随机 Derpibooru 图片

用法

derpi

指令:derpi <id>
获取呆站图片

例:derpi 1335306

derpi.random

指令:derpi random [query]
随机获取呆站图片
输入 derpi.random,后加一个 Derpibooru 搜索串,用于筛选图片。若搜索串中有空格,需给整个搜索串加引号。
省略搜索串或输入“再来一张”(或“再来”)可重复最近一次请求。
也可以直接使用以下快捷方式来调用预设的搜索串和选项:
    随机小马图
    随机暮暮/紫悦/TS图
    随机萍琪/碧琪/PP图
    随机阿杰/嘉儿/AJ图
    随机柔柔/小蝶/FS图
    随机云宝/戴茜/黛茜/黛西/RD图
    随机瑞瑞/珍奇/RY图

例:derpi.random "pony, sunset shimmer"

该指令有几个隐藏选项:

  • --r34 <level> 指定最高允许的 R34 分级:--r34 1-s 表示 suggestive--r34 2-q 表示 questionable--r34 3-e 表示 explicit

  • --dark <level> 指定最高允许的黑暗内容分级:--dark 1-S 表示 semi-grimdark--dark 2-g 表示 grimdark

  • --grotesq, -G 若指定,则允许血腥或恶心(grotesque)的图片

不指定上述任何选项的情况下,默认只显示 safe 分级的图片。

主要配置项

  • booruUrl:图站网址。默认为 Derpibooru https://derpibooru.org。若机器人网络无法访问 Derpibooru,可将此项设为其另一域名 https://trixiebooru.org。也可以设置为其他基于 Philomena 的图站,如 Ponybooru https://ponybooru.orgFurbooru https://furbooru.orgPonerpics https://ponerpics.orgManebooru https://manebooru.art

  • filterId:获取随机图片时使用的过滤器编号。默认为 191275。被该过滤器隐藏的图片不会出现在随机图结果中。若使用 Derpibooru 以外的图站,需要到相应图站上创建或选择合适的过滤器,然后将此项设置成过滤器详情页的网址中“/filters/”后的数字。设置为 -1 时使用图站的默认过滤器。

  • restrictions:随机图片必须满足的搜索词。会自动添加到所有搜索词中。默认为 wilson_score.gte:0.93(威尔逊得分不低于 0.93)。

  • randomShortcuts:定义随机图片的预设搜索词快捷方式。默认为“随机小马图” = derpi.random pony、“随机暮暮/紫悦/TS图” = derpi.random ts,pony,solo 等 7 个。

关于其余配置项,请到 Koishi 控制台安装并应用本插件后查看。