nonebot-plugin-duel


Namenonebot-plugin-duel JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/Redmomn/nonebot-plugin-duel
Summarynonebot-plugin-duel
upload_time2024-03-21 16:10:35
maintainerNone
docs_urlNone
authorRedmomn
requires_pythonNone
licenseMIT
keywords nonebot2 duel
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <p align="center">
  <a href="https://v2.nonebot.dev/"><img src="https://v2.nonebot.dev/logo.png" width="200" height="200" alt="nonebot"></a>
</p>

<div align="center">

# nonebot-plugin-vits-tts

✨ 来一场西部牛仔决斗吧 ✨

<p align="center">
  <a href="https://github.com/Redmomn/nonebot-plugin-duel/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/Redmomn/nonebot-plugin-duel.svg" alt="license">
  </a>
  <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="Python">
  <a href="https://pypi.org/project/nonebot-plugin-duel">
    <img src="https://badgen.net/pypi/v/nonebot-plugin-duel" alt="pypi">
  </a>
</p>

</div>
## 📖 介绍
NoneBot2决斗插件  

已兼容pydantic v1&v2

## 💿 安装

<details open>
<summary>nb-cli</summary>

    nb plugin install nonebot-plugin-duel

</details>

<details open>
<summary>pip</summary>

    pip install nonebot_plugin_duel

</details>

## ⚙️ 配置

默认配置示例

```text
# 机器人的自称
DUEL__NICKNAME=阿米娅
# 插件的黑名单用户,是一个int类型的列表
DUEL__BLACKLISTED_USERS=[]
```

## 🎉 使用

- 发送关键词`决斗`并@一个人即可和他发起决斗,例如`决斗@阿米娅`
- 在同一个群里,未结束先前的决斗不会开启新的决斗

```text
- 说 `兔兔,我要与[@一个人]决斗` 
- 对方需在30秒内回复`同意`,否则决斗会取消。
- 接下来,阿米娅会在60秒内的一个随机时间喊出`开始`,在这之后最先发送`开枪`的博士胜出,在喊开始之前发送的博士会被视为犯规。
```

## 💡 感谢

此插件基于[AmiyaBot](https://www.amiyabot.com/)的[决斗插件](https://github.com/hsyhhssyy/amiyabot-game-hsyhhssyy-duel/)
移植而来

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Redmomn/nonebot-plugin-duel",
    "name": "nonebot-plugin-duel",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "nonebot2, duel",
    "author": "Redmomn",
    "author_email": "109732988+Redmomn@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/b2/88/c89e18190fa8855f8e866803f2cd5300ead44b140c0e4a42c5468cd048e6/nonebot_plugin_duel-0.1.2.tar.gz",
    "platform": null,
    "description": "<p align=\"center\">\n  <a href=\"https://v2.nonebot.dev/\"><img src=\"https://v2.nonebot.dev/logo.png\" width=\"200\" height=\"200\" alt=\"nonebot\"></a>\n</p>\n\n<div align=\"center\">\n\n# nonebot-plugin-vits-tts\n\n\u2728 \u6765\u4e00\u573a\u897f\u90e8\u725b\u4ed4\u51b3\u6597\u5427 \u2728\n\n<p align=\"center\">\n  <a href=\"https://github.com/Redmomn/nonebot-plugin-duel/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/github/license/Redmomn/nonebot-plugin-duel.svg\" alt=\"license\">\n  </a>\n  <img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"Python\">\n  <a href=\"https://pypi.org/project/nonebot-plugin-duel\">\n    <img src=\"https://badgen.net/pypi/v/nonebot-plugin-duel\" alt=\"pypi\">\n  </a>\n</p>\n\n</div>\n## \ud83d\udcd6 \u4ecb\u7ecd\nNoneBot2\u51b3\u6597\u63d2\u4ef6  \n\n\u5df2\u517c\u5bb9pydantic v1&v2\n\n## \ud83d\udcbf \u5b89\u88c5\n\n<details open>\n<summary>nb-cli</summary>\n\n    nb plugin install nonebot-plugin-duel\n\n</details>\n\n<details open>\n<summary>pip</summary>\n\n    pip install nonebot_plugin_duel\n\n</details>\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u9ed8\u8ba4\u914d\u7f6e\u793a\u4f8b\n\n```text\n# \u673a\u5668\u4eba\u7684\u81ea\u79f0\nDUEL__NICKNAME=\u963f\u7c73\u5a05\n# \u63d2\u4ef6\u7684\u9ed1\u540d\u5355\u7528\u6237\uff0c\u662f\u4e00\u4e2aint\u7c7b\u578b\u7684\u5217\u8868\nDUEL__BLACKLISTED_USERS=[]\n```\n\n## \ud83c\udf89 \u4f7f\u7528\n\n- \u53d1\u9001\u5173\u952e\u8bcd`\u51b3\u6597`\u5e76@\u4e00\u4e2a\u4eba\u5373\u53ef\u548c\u4ed6\u53d1\u8d77\u51b3\u6597\uff0c\u4f8b\u5982`\u51b3\u6597@\u963f\u7c73\u5a05`\n- \u5728\u540c\u4e00\u4e2a\u7fa4\u91cc\uff0c\u672a\u7ed3\u675f\u5148\u524d\u7684\u51b3\u6597\u4e0d\u4f1a\u5f00\u542f\u65b0\u7684\u51b3\u6597\n\n```text\n- \u8bf4 `\u5154\u5154\uff0c\u6211\u8981\u4e0e[@\u4e00\u4e2a\u4eba]\u51b3\u6597` \n- \u5bf9\u65b9\u9700\u572830\u79d2\u5185\u56de\u590d`\u540c\u610f`\uff0c\u5426\u5219\u51b3\u6597\u4f1a\u53d6\u6d88\u3002\n- \u63a5\u4e0b\u6765\uff0c\u963f\u7c73\u5a05\u4f1a\u572860\u79d2\u5185\u7684\u4e00\u4e2a\u968f\u673a\u65f6\u95f4\u558a\u51fa`\u5f00\u59cb`\uff0c\u5728\u8fd9\u4e4b\u540e\u6700\u5148\u53d1\u9001`\u5f00\u67aa`\u7684\u535a\u58eb\u80dc\u51fa\uff0c\u5728\u558a\u5f00\u59cb\u4e4b\u524d\u53d1\u9001\u7684\u535a\u58eb\u4f1a\u88ab\u89c6\u4e3a\u72af\u89c4\u3002\n```\n\n## \ud83d\udca1 \u611f\u8c22\n\n\u6b64\u63d2\u4ef6\u57fa\u4e8e[AmiyaBot](https://www.amiyabot.com/)\u7684[\u51b3\u6597\u63d2\u4ef6](https://github.com/hsyhhssyy/amiyabot-game-hsyhhssyy-duel/)\n\u79fb\u690d\u800c\u6765\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "nonebot-plugin-duel",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/Redmomn/nonebot-plugin-duel"
    },
    "split_keywords": [
        "nonebot2",
        " duel"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e7a4e2e52b6d5d422ec2ff761160484dbbca04f8f8d95733e4d94ac7aebeae0d",
                "md5": "39fd56639f4bca778b8d2d07b05c92b2",
                "sha256": "199466c56981267945ab2337f8da57612bea79101318a21371dd03561aede1d3"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_duel-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "39fd56639f4bca778b8d2d07b05c92b2",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 7643,
            "upload_time": "2024-03-21T16:10:35",
            "upload_time_iso_8601": "2024-03-21T16:10:35.056051Z",
            "url": "https://files.pythonhosted.org/packages/e7/a4/e2e52b6d5d422ec2ff761160484dbbca04f8f8d95733e4d94ac7aebeae0d/nonebot_plugin_duel-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b288c89e18190fa8855f8e866803f2cd5300ead44b140c0e4a42c5468cd048e6",
                "md5": "42e41b7ca4b001c07a820969214ef674",
                "sha256": "a114aa2d1785153167266404a097ef314d2492a56507e82f20a8f5199bbe21ac"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_duel-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "42e41b7ca4b001c07a820969214ef674",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5959,
            "upload_time": "2024-03-21T16:10:35",
            "upload_time_iso_8601": "2024-03-21T16:10:35.959961Z",
            "url": "https://files.pythonhosted.org/packages/b2/88/c89e18190fa8855f8e866803f2cd5300ead44b140c0e4a42c5468cd048e6/nonebot_plugin_duel-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-21 16:10:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Redmomn",
    "github_project": "nonebot-plugin-duel",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "nonebot-plugin-duel"
}
        
Elapsed time: 0.27360s