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-jryspro

v2.1.10

Published

[![npm](https://img.shields.io/npm/v/koishi-plugin-jryspro?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-jryspro)

Downloads

293

Readme

koishi-plugin-jryspro

npm

jrys plugin for bella

注意

  • 更新前请看更新日志,也许有些版本你并不需要更新
  • 如果需要将v1.2.x更新到v1.3.x请先停止本插件再更新,以免koishi炸掉
  • v1.3.3(非重要更新) 如果你的图源api地址不支持?random参数,请不要更新此插件

使用方法

指令: 今日运势
指令别名: jrys
可选选项:

  • -o 纯文本输出,可以提高输出速率
  • -n 无视夜间模式输出,可能有群友不太喜欢夜间模式的
  • -t 输出图文,有群友想存图的
  • -i 渲染图模式输出,这个是默认的

如果你无法使用此插件,请检查

    1. (使用命令时无反应,报错等)请检查指令是否有冲突或者是否正确安装puppeteer
    1. 提示“发生未知错误”可能是没有获取到群友的uid,需要在数据库内刷新一下
    1. “数据出错”之类的提示不是本插件的提示,可能你装了其他插件
    1. 启用不了插件。请检查koishi版本,puppeteer版本等是否再兼容范围内,或重启koishi,删除此插件依赖再尝试重装

随机文件夹内图片时请注意路径`C:user/path/to/`不要把后面的/忘了

配置

| 配置项 | 参数 | 描述 | |---------------|-----|---------------------------------------------------------------------------------------------------------| | interval | | 指令调用间隔,得加载数据库才能使用调用间隔,单位是毫秒(ms) | | nightauto | | 是否开启自动夜间模式 | | nightStart | | 夜间模式开启时间整点(24时制),一般设置在晚上 | | nightEnd | | 夜间模式结束时间整点(24时制),一般设置在早上(需要注意的是,结束时间要小于开启时间,否则启用默认值) | | imgApi |(v1.3.0可用本地文件夹绝对路径)| 图片api地址,仅支持返回图片的api,不支持json等。由于我只制作了竖屏图片适配,建议使用竖屏的图片。在填写时不要把http(s)://忘了哦。 | | waitting | | 是否开启等待提示,默认开启 | | defaultMode | | 默认输出模式,非以下参数默认为0 | | | 0 | 渲染输出-puppeteer渲染输出 | | | 1 | 纯文本输出,仅输出文本 | | | 2 | (默认)新版竖屏模式输出 | | | 3 | 图文输出,文字+图片的输出方式 | | subimgApi |(v1.3.0可用本地文件夹绝对路径)| 图文模式的图片api地址,仅支持返回图片的api,不支持json等。api后我加了?v=的参数用来刷新图片,如果你的api跟v这个参数冲突了可以换一个api或者。在填写时不要把http(s)://忘了哦 | | fortuneApi |(v1.3.0前可用)| 运势源api,尽可能用自己的api(我服务器也不是永久的,也可能被打死如果没了你可以选择自建后端然后用自己的api) |

CHANGELOG

更新日志

api说明

  • api url以 #e# 结尾可以在末尾添加更新时间戳(例子后面等价的数字为当前时间戳)
  • 例: https://api.example.com/img?#e# ==等价于== https://api.example.com/img?271878
  • 例: https://api.example.com/img?type=acc&v=#e# ==等价于== https://api.example.com/img?type=acc&v=271878

本人的图源api不再向外提供,可以选择随机指定文件夹内的图片。或者其他图源的api(推荐竖屏)
imgApi与subimgApi支持本地文件夹绝对路径和http(s)等网络api

TIP

如果没有图片输出可以看看log时不时puppeteer有问题
确定puppeteer没问题那就是api寄了或者本地路径没填对,别把最后面的/省了
有问题就github开issues吧