Skip to main content
AgnesDigitalLogo

NoneBotPluginText

✨基于nonebot2框架的插件,实现交互游戏恶魔轮盘赌✨

GitHub stars GitHub issues QQ Chat Group pypi python NoneBot

说明

本项目用于以交互形式完成游戏玩法恶魔轮盘赌(Buckshot Roulette)的玩法,可以在群聊中使用,一个群同时只能存在一场对局

由于“赌”在国内部分平台是被封禁的,所以文案均改为“恶魔轮盘”

安装

以下提到的方法 任选其一即可

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

指令

游戏外

  • br开始| br加入 —— 开始游戏
  • br帮助 —— 查看帮助

游戏中

  • 开枪 —— (前提:加入游戏)进行攻击判定
  • 结束游戏 —— (前提:在对局中,或者超级管理员)结束当前会话在进行的游戏
  • 使用道具 xxx(目前道具:刀 | 手铐 | 香烟 | 放大镜 | 饮料 )
  • br当前状态 —— 查看当前游戏的数值状态

测试图

测试图1 测试图2

env配置

暂无

QA

重启后加入游戏方法

在游戏结束后,可以通过命令br加入加入游戏,两个人都需要发送,否则判断不在游戏中

饮料退弹效果

饮料退弹应该是不可知的子弹,但是当开枪后的效果结算就知道当前的子弹,这是一个bug

to do

  • 开枪基本逻辑
  • 道具逻辑
  • 分数逻辑
  • 人机逻辑

🙈 其他

  • 本项目仅供学习使用,请勿用于商业用途,喜欢该项目可以Star或者提供PR
  • 爱发电
  • 加入群聊

Metadata

Release files for nonebot_plugin_BR 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot_plugin_BR 0.0.8
File Size Uploaded
nonebot_plugin_br-0.0.8.tar.gz 11.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot_plugin_BR 0.0.8
File Interpreter ABI Platform
nonebot_plugin_br-0.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 25.0 kB

Release files / nonebot_plugin_br-0.0.8.tar.gz

Download URL nonebot_plugin_br-0.0.8.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
955049a75c9efabb16e0c6af9df10379a69922f860678086a80f64ddcf4ae4c8
BLAKE2b-256 checksum
How to use checksums
6a48c030e0e976938bdcb859e052732152c1872d85446b21decd997d564c4a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.22.2 CPython/3.12.3 Linux/6.8.0-1017-azure

Release files / nonebot_plugin_br-0.0.8-py3-none-any.whl

Download URL nonebot_plugin_br-0.0.8-py3-none-any.whl
Size 13.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2b148419643fb34d2e6a69180a7b4abe4b0258c5cd5dfeb37aa7379515b1b707
BLAKE2b-256 checksum
How to use checksums
31319c35b68549c8aca2686d9c1cc8ff8917ef9160ccfce0f57c21ff3d80da01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.22.2 CPython/3.12.3 Linux/6.8.0-1017-azure

Release history Release notifications | RSS feed

This release

0.0.8 This release

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page