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-see-color

v1.3.2

Published

欢迎来到 找色块 小游戏,发现不同色块,挑战观察力,又名《给我点颜色看看》。

Downloads

769

Readme

koishi-plugin-see-color

npm

🎈 介绍

一款有趣而简单的视觉游戏。🎮

游戏开始后,系统会生成并发送一个由多个色块组成的图片,图片中有一个色块的颜色与其他色块稍有差异,你需要在规定时间内找出这个色块,并发送指令来猜测。

如果你回答正确,系统会给你积分奖励,并生成一个难度更高的图片继续游戏。如果你回答错误,则会提示你再试一次。

你找到的色块越多,你的分数就越高。😎

📦 安装

前往 Koishi 插件市场添加该插件即可

⚙️ 配置

基础配置

  • initialLevel: 游戏的初始等级。默认值为 2
  • blockSize: 每个颜色方块的大小(像素)。默认值为 50
  • isNumericGuessMiddlewareEnabled: 是否启用数字猜测中间件。默认值为 true
  • blockGuessTimeLimitInSeconds: 猜测颜色方块的时间限制(秒)。默认值为 0,为 0 时则不限制时间。

图片配置:

  • isCompressPicture: 是否压缩图片(不建议使用)。默认值为 false

如果 isCompressPicturetrue,则添加以下配置项:

  • pictureQuality: 压缩后图片的质量(1-100)。取值范围为 1 到 100,默认值为 80。

🎮 使用

  • 启动 puppeteer 服务插件。
  • 建议为各指令添加合适的指令别名。

📝 命令

  • seeColor.开始: 开始一个新的游戏。
  • seeColor.猜 <number>: 猜测不同颜色方块的序号。
  • seeColor.结束: 结束当前的游戏。
  • seeColor.排行榜: 查看玩家的排名,根据他们的分数。

🙏 致谢

🐱 QQ 群

  • 956758505

📄 License

MIT License © 2024

希望您喜欢这款插件! 💫

如有任何问题或建议,欢迎联系我哈~ 🎈