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 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-liar-tavern

v1.0.7

Published

骗子酒馆游戏插件,一个类似Among Us的社交推理游戏,专为QQ官方机器人设计

Readme

Koishi 骗子酒馆插件

License Version

一个有趣的社交推理游戏插件,玩家需要通过推理、欺骗和投票来找出谁是骗子。

游戏特色

  • � 刺激的社交推理玩法,类似狼人杀和谁是卧底
  • 🧩 多种角色:平民、骗子、侦探,各有不同能力
  • � 丰富的物品系统,增加游戏策略性
  • 💰 积分系统,让游戏更有长期参与感
  • 📊 数据持久化,保存玩家数据和游戏状态

安装方法

npm install koishi-plugin-liar-tavern

游戏规则

角色介绍

  • 平民:需要找出谁是骗子并投票淘汰
  • 骗子:伪装成平民,避免被发现
  • 侦探:平民阵营,拥有特殊能力可以调查玩家

基本流程

  1. 创建游戏房间 (创建游戏)
  2. 玩家加入游戏 (加入游戏)
  3. 开始游戏 (开始游戏)
  4. 讨论阶段:玩家互相交流,找出可疑的人
  5. 投票阶段:投票决定淘汰谁 (投票 <玩家ID>)
  6. 重复讨论和投票,直到骗子全部被淘汰或骗子数量等于平民数量

指令列表

| 指令 | 说明 | 使用场景 | |------|------|---------| | 创建游戏 | 创建一个新的游戏房间 | 群聊 | | 加入游戏 | 加入当前群的游戏 | 群聊 | | 开始游戏 | 开始游戏(房主使用) | 群聊 | | 结束游戏 | 强制结束当前游戏 | 群聊 | | 投票 <玩家ID> | 投票淘汰指定玩家 | 群聊 | | 跳过投票 | 跳过本轮投票 | 群聊 | | 查看身份 | 查看自己的身份 | 私聊 | | 查看积分 | 查看自己的积分 | 群聊/私聊 | | 商店 | 查看可购买的物品 | 群聊 | | 购买 <物品ID> | 购买指定物品 | 群聊 | | 使用 <物品ID> [目标玩家ID] | 使用指定物品 | 群聊 | | 查看物品 | 查看自己拥有的物品 | 群聊/私聊 | | 帮助 | 查看游戏帮助 | 群聊/私聊 |

物品系统

游戏中有多种物品可以购买和使用,增加游戏的策略性:

| 物品 | 价格 | 效果 | |------|------|------| | 免死金牌 | 100积分 | 免疫一次投票淘汰 | | 猎人牌 | 150积分 | 死亡时随机带走一名玩家 | | 侦探牌 | 200积分 | 查看一名玩家的真实身份 | | 复活牌 | 250积分 | 随机复活一名已淘汰玩家 | | 双票权 | 100积分 | 本轮投票算两票 |

配置项

export interface Config {
  // 游戏设置
  minPlayers: number       // 最少玩家数量
  maxPlayers: number       // 最多玩家数量
  voteTimeout: number      // 投票超时时间(秒)
  discussionTime: number   // 讨论时间(秒)
  
  // 角色设置
  liarRatio: number        // 骗子比例(0-1之间)
  detectiveRatio: number   // 侦探比例(0-1之间)
  
  // 积分设置
  winPoints: number        // 胜利获得积分
  participationPoints: number // 参与游戏获得积分
}

常见问题

Q: 如何知道自己的身份?
A: 游戏开始后,机器人会私聊告知你的身份。也可以使用查看身份指令查询。

Q: 积分有什么用?
A: 积分可以用来购买游戏中的各种道具,增加游戏的策略性和趣味性。

Q: 如何使用物品?
A: 使用使用 <物品ID> [目标玩家ID]指令来使用物品。有些物品需要指定目标玩家。

Q: 游戏卡住了怎么办?
A: 房主可以使用结束游戏指令强制结束当前游戏。

开源协议

MIT License