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-number-merge-game

v1.2.4

Published

欢迎来到 2048 小游戏,通过移动将数字组合起来以获得 2048,互动操作,争夺最高分,支持自定义网格的娱乐模式。2️⃣0️⃣4️⃣8️⃣

Downloads

311

Readme

koishi-plugin-number-merge-game 🎲

npm

🎐 简介

koishi-plugin-number-merge-game 是一个基于 Koishi 框架的插件,它可以让您的机器人主持 2048 游戏。

您可以邀请您的好友一起加入游戏,互动操作,争夺最高分,甚至还可以赚取虚拟货币!

🎉 安装

您可以通过 Koishi 插件市场搜索并安装该插件。

🌈 使用

  • 启动必要的服务。您需要启用 monetarydatabasepuppeteer 插件,以实现货币系统,数据存储和图片生成的功能。
  • 建议自行添加指令别名,以方便您和您的用户使用。

⚙️ 配置项

游戏投入设置

  • maxInvestmentCurrency:加入游戏时可投入的最大货币数额,默认为 50

排行榜设置

  • defaultMaxLeaderboardEntries:显示排行榜时默认的最大人数,默认为 10

2048 游戏奖励设置

  • rewardMultiplier2048Win:达成 2048 赢了之后可得到的货币倍数,默认为 2
  • defaultGridSize2048:开始 2048 游戏时默认的游戏网格大小,范围 4~8,值为 4 时为经典模式,才会记分和奖励,默认为 4

消息发送设置

  • retractDelay:自动撤回等待的时间,默认值为 0,单位是秒。值为 0 时不启用自动撤回功能。
  • imageType:发送的图片类型,可选 pngjpegwebp,默认为 png
  • isTextToImageConversionEnabled:是否开启将文本转为图片的功能(可选),如需启用,需要启用 markdownToImage 服务,默认为 false

2048 游戏操作设置

  • allowNonPlayersToMove2048Tiles:是否允许未加入游戏的人进行 2048 游戏的移动操作(无法投入货币),开启后可以 0 玩家开始游戏,默认为 false
  • isMobileCommandMiddlewarePrefixFree:是否开启移动指令无前缀的中间件,默认为 false
  • enableContinuedPlayAfter2048Win:是否开启赢得 2048 后的继续游戏功能,默认为 true

数字奖励设置

  • rewardHighNumbers:是否对后续的高数字进行奖励,默认为 true
  • incrementalRewardForHighNumbers:高数字奖励是否依次递增,默认为 true

🌼 指令

游戏操作

  • 2048Game:显示 2048 游戏的指令帮助。
  • 2048Game.加入 [money:number]:加入游戏,可选参数为投入的货币数额。
  • 2048Game.退出:退出游戏,如果游戏未开始,会退还投入的货币。
  • 2048Game.开始 [gridSize:number]:开始游戏,需要至少有一个玩家加入。
  • 2048Game.重置:强制重置游戏,不会退还投入的货币。
  • 2048Game.移动 [operation:text]:进行移动操作,参数为方向,可选 上/s/u下/x/d左/z/l右/y/r,也可以一次输入多个方向。

游戏记录

  • 2048Game.历史最高:查看历史最高记录,可选参数 -a 跨群查询。
  • 2048Game.排行榜 [number:number]:查看排行榜相关指令,可选 胜场输场最高分数最高数字损益
  • 2048Game.查询玩家记录 [targetUser:text]:查询玩家游戏记录信息,可选参数为目标玩家的 at 信息,没有参数则默认为指令发送者。

🍧 致谢

  • Koishi - 机器人框架

  • https://www.2048.org/ - 2048 游戏资源

  • https://forum.koishi.xyz/t/topic/6595 - 求插件的帖子(该插件的动力来源) 感谢楼主 xhz (原神大人~)

🐱 QQ 群

  • 956758505

✨ License

MIT License © 2024

希望您喜欢这款插件! 💫

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