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 群员 群聊 退出当前房间,若是房主自动转让,若是最后一名玩家则关闭房间

效果图

待施工

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.3.tar.gz (24.7 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.3-py3-none-any.whl (23.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nonebot_plugin_liarsbar-1.0.3.tar.gz
Algorithm Hash digest
SHA256 8985d79ab8b01aadf4f9ff37b3fe885ae6f0a891c5f4a1bf25364f1fb7b65f4b
MD5 f662ee61328a54dfdaca4d7c98cbc07c
BLAKE2b-256 deb9556afe2f1b51e4d29137e5db9afb58beb8dca62d7588a689a88a7b84bd43

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_liarsbar-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ba206d541d52e1e45d7ba6ed6676896497683eb9e296bff811a278c571eaca55
MD5 49320f2cdc4fe9c0061c5508016c26a1
BLAKE2b-256 446087c1336990ec063e83e10b34d647844bb086c618d02442a68dedbd0541d3

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