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.4.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.4-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_liarsbar-1.0.4.tar.gz
  • Upload date:
  • Size: 24.7 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.4.tar.gz
Algorithm Hash digest
SHA256 3735b06dcac0b939fdd8eee4e2cac043aab2100c47f29c5c98f78b0dacde3f47
MD5 9c2df10c21073be3b84adec0913761a4
BLAKE2b-256 7410adccd7950186776029826347c1066e1fe67f3f057e9be0655f6922a71edb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_liarsbar-1.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9ff8c3119a979a1057d86ef10c7e4efc2c446a6a71c61cccb69b362b42598daa
MD5 228d121d21bb169c331e7effd47ffb2f
BLAKE2b-256 a4602b05f52774726b3b9e978a7db2b05f623585b9ccd2c59aa47ba800ed73ed

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