Skip to main content

用于 Nonebot2 的 liar's bar 插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-liarsbar

✨ Liar's Bar 插件 ✨

license pypi python

这是一个 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文件中添加下表中的必填配置

配置项 必填 默认值 说明
暂无

🎉 使用

指令表

指令 权限 需要@ 范围 参数 说明
/createroom 群员 群聊 [可选] 房间名 创建房间,自动成为房主
/startgame 房主 群聊 与此房间中所有玩家开始一场游戏
/attend 群员 群聊 [必需] 房间名 加入房间名为房间名参数的房间
/fp 游戏中当前操作玩家 群聊 [必需] 牌的序号 打出牌的序号的牌,可以出多张牌,如/fp 1 2 3可打出三张牌
/zy 游戏中当前操作玩家 群聊 质疑上家

效果图

待施工

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.1.tar.gz (25.2 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.1-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_liarsbar-1.0.1.tar.gz
  • Upload date:
  • Size: 25.2 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.1.tar.gz
Algorithm Hash digest
SHA256 f020a8f7818ab8610253e2c169294191fa0281dee7e10ce4b197e6eb2eef73d7
MD5 8340cd9991495b41db05068a2515ded7
BLAKE2b-256 dbd1a2c67150f0f89c01a8082117a96066fd34e18286fc94f2f28e73b8bf55db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_liarsbar-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 15c8e6fdd583f7a4e824d064a43849258a07cb44cedfa7bb0955f9bb6d5bdc74
MD5 e2ebad8489a0bd70ae3cccdcaf2990c8
BLAKE2b-256 e45766497a085e91922fd75a5b9399ed02e6cec2a6e1b3512cacf142612b7715

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