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

koishi-plugin-animal-picture

v1.0.2

Published

Send animal pictures via Koishi.js.

Downloads

131

Readme

koishi-plugin-animal-picture

npm npm-download

一个用于 Koishi v4 的用来发各种动物图的插件。主要是用来学习 Git, GitHub 和 npm 怎么用而弄出来的,所以会有各种各样的 bug,而且不怎么好用。

图源均为网上搜索的外部图库,不对图片内容负责。

安装方法

npm i koishi-plugin-animal-picture

然后在配置文件或入口文件中将插件添加至你的机器人中。

使用方法

animal <species>

species:可查询的物种,通过 help animal 或者 animal -h 可查看。

| 可选选项 | 默认值 | 说明 | | - | - | - | | -g, --gif | false | 试图请求 gif 图 *1 |

*1 虽然这个选项经常没用,因为这取决于请求图库能不能单独查询 gif 图。另外,设置该值为 false 并不会使得指令不请求 gif 图。

插件配置项

这个插件无需任何配置项即可使用,同时也提供了一些可能会用到的配置项。一些不太可能会用到的配置项就摸了。

| 配置项 | 默认值 | 说明 | | - | - | - | | inbound | false | 是否只使用内网能访问的图源。如果 bot 的服务器在内网,请设置为 true |

Q&A

  • 为什么有时候 CQ 码会裸奔?

这可能是因为你的服务器的网络太菜了,或者你使用的是内联网,没法获取到图片。

  • 我想要 [某个物种] 图!

我不会也懒得自建图床,所以如果有野生的随机图片 API 那就很好,但没有的话就摸了。

  • 发现了个 bug!

这很正常。

更新记录

v1.0.2

  • 增加了对控制台 Schema 的支持,并修复了文档。

v1.0.1

  • 清除了失效的图源。

v1.0.0

  • 对 v4 做了一个很简陋的适配。

  • 因为删掉了一个失效图源,配置项 requestLimit 不再起作用而被删除。

    如果仍然需要用于 v3 版本,请使用 v0.2 版本。