Skip to main content

用于 Nonebot2 的 liar's bar 插件

Project description

NoneBotPluginLogo

nonebot-plugin-liarsbar

✨ Liar's Bar 插件 ✨

license pypi python issues

这是一个 nonebot2 插件,用于游玩骗子酒馆liar's bar

📖 介绍

和朋友进行一场勾心斗角的酒馆游戏

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-liarsbar
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-liarsbar
pdm
pdm add nonebot-plugin-liarsbar
poetry
poetry add nonebot-plugin-liarsbar
conda
conda install nonebot-plugin-liarsbar

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-plugin-liarsbar"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
LIARS_NUM_BULLET False 1 每个玩家枪内子弹数

🎉 使用

指令表

指令 权限 需要@ 范围 参数 说明
/createroom 群员 群聊 [可选] 房间名 创建房间,自动成为房主
/startgame 房主 群聊 与此房间中所有玩家开始一场游戏
/attend 群员 群聊 [必需] 房间名 加入房间名为房间名参数的房间
/fp 游戏中当前操作玩家 群聊 [必需] 牌的序号 打出牌的序号的牌,可以出多张牌,如/fp 1 2 3可打出三张牌
/zy 游戏中当前操作玩家 群聊 质疑上家
/quitroom 群员 群聊 退出当前房间,若是房主自动转让,若是最后一名玩家则关闭房间
/stopgame 房主 群聊 强制结束当前游戏,丢失本局内所有数据

效果图

待施工

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_liarsbar-1.0.5.tar.gz (25.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_liarsbar-1.0.5-py3-none-any.whl (24.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_liarsbar-1.0.5.tar.gz.

File metadata

  • Download URL: nonebot_plugin_liarsbar-1.0.5.tar.gz
  • Upload date:
  • Size: 25.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for nonebot_plugin_liarsbar-1.0.5.tar.gz
Algorithm Hash digest
SHA256 13d007237e35f53dbf3ac3d2a73edd34cfb21a8acbe4dd6d00df8ce93c4cb566
MD5 d00059b7e76f546eb13c121fd819b01e
BLAKE2b-256 2242d962df2ba0a09f5ce7c3a5e4c5351d117d31906f6e004eae2332e1585dd6

See more details on using hashes here.

File details

Details for the file nonebot_plugin_liarsbar-1.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_liarsbar-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b38378c78f0c9d786e450aaf40d1387588fa5878fb008c1b775b09ec4de43c46
MD5 316215daa697296923c86711b8bf1aca
BLAKE2b-256 e7322228935b18de315f6541760ba92e7a8da00157b0230fe557f69464b8de72

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page