nonebot_plugin_BR


Namenonebot_plugin_BR JSON
Version 0.0.4 PyPI version JSON
download
home_pageNone
Summary基于nonebot2框架的插件,实现交互游戏恶魔轮盘赌
upload_time2024-11-18 05:55:15
maintainerNone
docs_urlNone
authorNone
requires_python<4.0,>=3.9
licenseMIT
keywords game nonebot2 plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 MD046 MD051 MD050-->
<div align="center">
  <img src="https://raw.githubusercontent.com/Agnes4m/nonebot_plugin_l4d2_server/main/image/logo.png" width="180" height="180"  alt="AgnesDigitalLogo">
  <br>
  <p><img src="https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

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

<a href="https://github.com/Agnes4m/nonebot_plugin_BR/stargazers">
        <img alt="GitHub stars" src="https://img.shields.io/github/stars/Agnes4m/nonebot_plugin_BR" alt="stars">
</a>
<a href="https://github.com/Agnes4m/nonebot_plugin_BR/issues">
        <img alt="GitHub issues" src="https://img.shields.io/github/issues/Agnes4m/nonebot_plugin_BR" alt="issues">
</a>
<a href="https://jq.qq.com/?_wv=1027&k=HdjoCcAe">
        <img src="https://img.shields.io/badge/QQ%E7%BE%A4-399365126-orange?style=flat-square" alt="QQ Chat Group">
</a>
<a href="https://pypi.python.org/pypi/nonebot_plugin_BR">
        <img src="https://img.shields.io/pypi/v/nonebot_plugin_BR.svg" alt="pypi">
</a>
    <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
    <img src="https://img.shields.io/badge/nonebot-2.1.0+-red.svg" alt="NoneBot">
</div>

## 说明

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

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

## 安装

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

<details open>
<summary>[推荐] 使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

```bash
nb plugin install nonebot_plugin_BR
```

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

```bash
pip install nonebot_plugin_BR
```

</details>
<details>
<summary>pdm</summary>

```bash
pdm add nonebot_plugin_BR
```

</details>
<details>
<summary>poetry</summary>

```bash
poetry add nonebot_plugin_BR
```

</details>
<details>
<summary>conda</summary>

```bash
conda install nonebot_plugin_BR
```

</details>
</details>

## 指令

### 游戏外

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

### 游戏中

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

## 测试图

![测试图1](./img/test2.png)
![测试图2](./img/test1.png)

## env配置

暂无

## QA

### 重启后加入游戏方法

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

### 饮料退弹效果

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

## to do

- [x] 开枪基本逻辑
- [x] 道具逻辑
- [ ] 分数逻辑
- [ ] 人机逻辑

## 🙈 其他

- 本项目仅供学习使用,请勿用于商业用途,喜欢该项目可以Star或者提供PR
- [爱发电](https://ifdian.net/a/agnes_digital/plan)
- [加入群聊](https://jq.qq.com/?_wv=1027&k=HdjoCcAe)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nonebot_plugin_BR",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "game, nonebot2, plugin",
    "author": null,
    "author_email": "Agnes_Digital <Z735803792@163.com>",
    "download_url": "https://files.pythonhosted.org/packages/d6/7e/e7cb71ba3031ac4f3ee5674a723bc45b22cc8f82bbad8b7ae2348740b098/nonebot_plugin_br-0.0.4.tar.gz",
    "platform": null,
    "description": "<!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 MD046 MD051 MD050-->\n<div align=\"center\">\n  <img src=\"https://raw.githubusercontent.com/Agnes4m/nonebot_plugin_l4d2_server/main/image/logo.png\" width=\"180\" height=\"180\"  alt=\"AgnesDigitalLogo\">\n  <br>\n  <p><img src=\"https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n__\u2728\u57fa\u4e8enonebot2\u6846\u67b6\u7684\u63d2\u4ef6\uff0c\u5b9e\u73b0\u4ea4\u4e92\u6e38\u620f\u6076\u9b54\u8f6e\u76d8\u8d4c\u2728__\n\n<a href=\"https://github.com/Agnes4m/nonebot_plugin_BR/stargazers\">\n        <img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/Agnes4m/nonebot_plugin_BR\" alt=\"stars\">\n</a>\n<a href=\"https://github.com/Agnes4m/nonebot_plugin_BR/issues\">\n        <img alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/Agnes4m/nonebot_plugin_BR\" alt=\"issues\">\n</a>\n<a href=\"https://jq.qq.com/?_wv=1027&k=HdjoCcAe\">\n        <img src=\"https://img.shields.io/badge/QQ%E7%BE%A4-399365126-orange?style=flat-square\" alt=\"QQ Chat Group\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot_plugin_BR\">\n        <img src=\"https://img.shields.io/pypi/v/nonebot_plugin_BR.svg\" alt=\"pypi\">\n</a>\n    <img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n    <img src=\"https://img.shields.io/badge/nonebot-2.1.0+-red.svg\" alt=\"NoneBot\">\n</div>\n\n## \u8bf4\u660e\n\n\u672c\u9879\u76ee\u7528\u4e8e\u4ee5\u4ea4\u4e92\u5f62\u5f0f\u5b8c\u6210\u6e38\u620f\u73a9\u6cd5\u6076\u9b54\u8f6e\u76d8\u8d4c(Buckshot Roulette)\u7684\u73a9\u6cd5\uff0c\u53ef\u4ee5\u5728\u7fa4\u804a\u4e2d\u4f7f\u7528\uff0c\u4e00\u4e2a\u7fa4\u540c\u65f6\u53ea\u80fd\u5b58\u5728\u4e00\u573a\u5bf9\u5c40\n\n\u7531\u4e8e\u201c\u8d4c\u201d\u5728\u56fd\u5185\u90e8\u5206\u5e73\u53f0\u662f\u88ab\u5c01\u7981\u7684\uff0c\u6240\u4ee5\u6587\u6848\u5747\u6539\u4e3a\u201c\u6076\u9b54\u8f6e\u76d8\u201d\n\n## \u5b89\u88c5\n\n\u4ee5\u4e0b\u63d0\u5230\u7684\u65b9\u6cd5 \u4efb\u9009**\u5176\u4e00**\u5373\u53ef\n\n<details open>\n<summary>[\u63a8\u8350] \u4f7f\u7528 nb-cli \u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c, \u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\u5b89\u88c5\n\n```bash\nnb plugin install nonebot_plugin_BR\n```\n\n</details>\n\n<details>\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \u6839\u636e\u4f60\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668, \u8f93\u5165\u76f8\u5e94\u7684\u5b89\u88c5\u547d\u4ee4\n\n<details>\n<summary>pip</summary>\n\n```bash\npip install nonebot_plugin_BR\n```\n\n</details>\n<details>\n<summary>pdm</summary>\n\n```bash\npdm add nonebot_plugin_BR\n```\n\n</details>\n<details>\n<summary>poetry</summary>\n\n```bash\npoetry add nonebot_plugin_BR\n```\n\n</details>\n<details>\n<summary>conda</summary>\n\n```bash\nconda install nonebot_plugin_BR\n```\n\n</details>\n</details>\n\n## \u6307\u4ee4\n\n### \u6e38\u620f\u5916\n\n- br\u5f00\u59cb| br\u52a0\u5165 \u2014\u2014 \u5f00\u59cb\u6e38\u620f\n- br help \u2014\u2014 \u67e5\u770b\u5e2e\u52a9\n\n### \u6e38\u620f\u4e2d\n\n- \u5f00\u67aa \u2014\u2014 (\u524d\u63d0:\u52a0\u5165\u6e38\u620f)\u8fdb\u884c\u653b\u51fb\u5224\u5b9a\n- \u7ed3\u675f\u6e38\u620f \u2014\u2014 (\u524d\u63d0:\u5728\u5bf9\u5c40\u4e2d,\u6216\u8005\u8d85\u7ea7\u7ba1\u7406\u5458)\u7ed3\u675f\u5f53\u524d\u4f1a\u8bdd\u5728\u8fdb\u884c\u7684\u6e38\u620f\n- \u4f7f\u7528\u9053\u5177 xxx(\u76ee\u524d\u9053\u5177\uff1a\u5200 | \u624b\u94d0 | \u9999\u70df | \u653e\u5927\u955c | \u996e\u6599 )\n- br\u5f53\u524d\u72b6\u6001 \u2014\u2014 \u67e5\u770b\u5f53\u524d\u6e38\u620f\u7684\u6570\u503c\u72b6\u6001\n\n## \u6d4b\u8bd5\u56fe\n\n![\u6d4b\u8bd5\u56fe1](./img/test2.png)\n![\u6d4b\u8bd5\u56fe2](./img/test1.png)\n\n## env\u914d\u7f6e\n\n\u6682\u65e0\n\n## QA\n\n### \u91cd\u542f\u540e\u52a0\u5165\u6e38\u620f\u65b9\u6cd5\n\n\u5728\u6e38\u620f\u7ed3\u675f\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4`br\u52a0\u5165`\u52a0\u5165\u6e38\u620f\uff0c\u4e24\u4e2a\u4eba\u90fd\u9700\u8981\u53d1\u9001\uff0c\u5426\u5219\u5224\u65ad\u4e0d\u5728\u6e38\u620f\u4e2d\n\n### \u996e\u6599\u9000\u5f39\u6548\u679c\n\n\u996e\u6599\u9000\u5f39\u5e94\u8be5\u662f\u4e0d\u53ef\u77e5\u7684\u5b50\u5f39\uff0c\u4f46\u662f\u5f53\u5f00\u67aa\u540e\u7684\u6548\u679c\u7ed3\u7b97\u5c31\u77e5\u9053\u5f53\u524d\u7684\u5b50\u5f39\uff0c\u8fd9\u662f\u4e00\u4e2abug\n\n## to do\n\n- [x] \u5f00\u67aa\u57fa\u672c\u903b\u8f91\n- [x] \u9053\u5177\u903b\u8f91\n- [ ] \u5206\u6570\u903b\u8f91\n- [ ] \u4eba\u673a\u903b\u8f91\n\n## \ud83d\ude48 \u5176\u4ed6\n\n- \u672c\u9879\u76ee\u4ec5\u4f9b\u5b66\u4e60\u4f7f\u7528\uff0c\u8bf7\u52ff\u7528\u4e8e\u5546\u4e1a\u7528\u9014\uff0c\u559c\u6b22\u8be5\u9879\u76ee\u53ef\u4ee5Star\u6216\u8005\u63d0\u4f9bPR\n- [\u7231\u53d1\u7535](https://ifdian.net/a/agnes_digital/plan)\n- [\u52a0\u5165\u7fa4\u804a](https://jq.qq.com/?_wv=1027&k=HdjoCcAe)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u57fa\u4e8enonebot2\u6846\u67b6\u7684\u63d2\u4ef6\uff0c\u5b9e\u73b0\u4ea4\u4e92\u6e38\u620f\u6076\u9b54\u8f6e\u76d8\u8d4c",
    "version": "0.0.4",
    "project_urls": {
        "homepage": "https://github.com/Agnes4m/nonebot_plugin_BR"
    },
    "split_keywords": [
        "game",
        " nonebot2",
        " plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "08f8f3ee86fc85a45047747fa2c87d380d51143ef1fac7b910eb9816e738faa3",
                "md5": "ef152124257a637a68ddb30b78401118",
                "sha256": "0c66b9110f2e0fb135ea72fb5ce923980050b070c1794850b20f5808554c89ab"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_br-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ef152124257a637a68ddb30b78401118",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 13264,
            "upload_time": "2024-11-18T05:55:14",
            "upload_time_iso_8601": "2024-11-18T05:55:14.499747Z",
            "url": "https://files.pythonhosted.org/packages/08/f8/f3ee86fc85a45047747fa2c87d380d51143ef1fac7b910eb9816e738faa3/nonebot_plugin_br-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d67ee7cb71ba3031ac4f3ee5674a723bc45b22cc8f82bbad8b7ae2348740b098",
                "md5": "905a481e961e5883fe5f649b7034b0fb",
                "sha256": "9d834d932e6f9b388cedce2178081ca3286f5a38e9371beafa0aca9da67b2c4e"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_br-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "905a481e961e5883fe5f649b7034b0fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 11609,
            "upload_time": "2024-11-18T05:55:15",
            "upload_time_iso_8601": "2024-11-18T05:55:15.950099Z",
            "url": "https://files.pythonhosted.org/packages/d6/7e/e7cb71ba3031ac4f3ee5674a723bc45b22cc8f82bbad8b7ae2348740b098/nonebot_plugin_br-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-18 05:55:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Agnes4m",
    "github_project": "nonebot_plugin_BR",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot_plugin_br"
}
        
Elapsed time: 0.45962s