nonebot-plugin-xiuxian-2


Namenonebot-plugin-xiuxian-2 JSON
Version 2.9.2.2 PyPI version JSON
download
home_pagehttps://github.com/QingMuCat/nonebot_plugin_xiuxian_2
Summary修仙插件
upload_time2023-05-05 13:42:35
maintainer
docs_urlNone
authorQingmuCat
requires_python
license
keywords pip nonebot2 文游 修仙
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <img src="https://s2.loli.net/2022/06/16/opBDE8Swad5rU3n.png" width="180" height="180" alt="NoneBotPluginLogo">
  <br>
  <p><img src="https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# 修仙2.0

_✨ QQ群聊修仙文字游戏✨_

🧬 插件主要为实现群聊修仙功能!🎉 

<p align="center">
  <img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="Python">
  <img src="https://img.shields.io/badge/nonebot-2.0.0r4+-red.svg" alt="NoneBot">
  <a href="https://pypi.org/project/nonebot-plugin-xiuxian-2/">
      <img src="https://img.shields.io/pypi/v/nonebot-plugin-xiuxian-2.svg" alt="pypi">
  </a>
</p>
</div>

## 📖 介绍

一款适用于QQ群的修仙插件,设定征集中,有好的想法可以推送给我哦~~~


## 💿 安装

详情可见 [文档](https://xiuxian.netlify.app/)

### 下载

1. 通过包管理器安装,可以通过nb,pip,或者poetry等方式安装,以pip为例

```
pip install nonebot_plugin_xiuxian_2 -U
```

2. 手动安装(建议)

```
git clone https://ghproxy.com/https://github.com/QingMuCat/nonebot_plugin_xiuxian_2
```

2、如果遇到问题,请先百度和查看下方的 【一些问题】

3、如解决不了进交流群:[760517008](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=zIKrPPqNStgZnRtuLhiOv9woBQSMQurq&authKey=Nrqm0zDxYKP2Fon2MskbNRmZ588Rqm79lJvQyVYWtkh9vDFK1RGBK0UhqzehVyDw&noverify=0&group_code=760517008) 提问,提问请贴上完整的日志


## 配置文件
1、配置文件一般在data/xiuxian文件夹下,自行按照json格式修改即可,一些字段的含义可以进群交流<br>
2、子插件的配置会在插件运行后在子插件文件中生成config.json文件,该文件字段含义在同级目录的xxxconfig.py有备注。注意:修改配置只需要修改json即可,修改.py文件的话需要删除json文件才会生效,任何修改都需要重启bot<br>
3.卡图下载地址:[卡图](https://cowtransfer.com/s/82b90d2b879d43):口令:k3jzr5,文件放置于data/xiuxian目录下<br>

## 风控配置
```
配置地址:修仙插件下xiuxian_config.py<br>
在只有一个qq链接的情况下风控配置应该全部为空,即不配置<br>
self.put_bot = []  # 接收消息qq,主qq,框架将只处理此qq的消息,不配置将默认设置第一个链接的qq为主qq<br>
self.main_bo = []  # 负责发送消息的qq,调用lay_out.py 下range_bot函数的情况下需要填写<br>
self.shield_group = []  # 屏蔽的群聊<br>
self.layout_bot_dict = {{}}  # QQ所负责的群聊{{群 :bot}}   其中 bot类型 []或str <br>
示例: {<br>
    "群123群号" : "对应发送消息的qq号"<br>
    "群456群号" : ["对应发送消息的qq号1","对应发送消息的qq号2"]<br>
}
当后面qq号为一个字符串时为一对一,为列表时为多对一<br>
```
## 一些问题

- pip install的填这个
  ```
     plugins = ["nonebot_plugin_xiuxian_2"]
  ```
- 手动安装的填这个
  ```
    plugin_dirs = ["nonebot_plugin_xiuxian_2"]
  ```
  或
    `bot.py`中添加
- pip install的填这个
  ```
     nonebot.load_plugin("nonebot_plugin_xiuxian_2")
  ```
- 手动安装的填这个
  ```
    nonebot.load_plugins("src/plugins", "nonebot_plugin_xiuxian_2")
  ```


# 🎉 特别感谢

- [NoneBot2](https://github.com/nonebot/nonebot2):本插件实装的开发框架,NB天下第一可爱。
- [go-cqhttp](https://github.com/Mrs4s/go-cqhttp):稳定完善的 CQHTTP 实现。
- [nonebot_plugin_xiuxian](https://github.com/s52047qwas/nonebot_plugin_xiuxian):原版修仙


# 🎉支持

- 大家喜欢的话可以给这个项目点个star

- 有bug、意见和建议都欢迎提交 [Issues](https://github.com/QingMuCat/nonebot_plugin_xiuxian_2.0/issues) 
- 或者联系进入QQ交流群:[760517008](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=zIKrPPqNStgZnRtuLhiOv9woBQSMQurq&authKey=Nrqm0zDxYKP2Fon2MskbNRmZ588Rqm79lJvQyVYWtkh9vDFK1RGBK0UhqzehVyDw&noverify=0&group_code=760517008)
- 3.0版本正在路上,敬请期待

# 许可证
本项目使用 [MIT](https://choosealicense.com/licenses/mit/) 作为开源许可证

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/QingMuCat/nonebot_plugin_xiuxian_2",
    "name": "nonebot-plugin-xiuxian-2",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "pip,nonebot2,\u6587\u6e38,\u4fee\u4ed9",
    "author": "QingmuCat",
    "author_email": "1242550160@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/d4/52/083ac9907cc30f227d49c173cec08d8fcdcf6a0a805566ba98992c5a0141/nonebot_plugin_xiuxian_2-2.9.2.2.tar.gz",
    "platform": "any",
    "description": "<div align=\"center\">\n  <img src=\"https://s2.loli.net/2022/06/16/opBDE8Swad5rU3n.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\">\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# \u4fee\u4ed92.0\n\n_\u2728 QQ\u7fa4\u804a\u4fee\u4ed9\u6587\u5b57\u6e38\u620f\u2728_\n\n\ud83e\uddec \u63d2\u4ef6\u4e3b\u8981\u4e3a\u5b9e\u73b0\u7fa4\u804a\u4fee\u4ed9\u529f\u80fd\uff01\ud83c\udf89 \n\n<p align=\"center\">\n  <img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"Python\">\n  <img src=\"https://img.shields.io/badge/nonebot-2.0.0r4+-red.svg\" alt=\"NoneBot\">\n  <a href=\"https://pypi.org/project/nonebot-plugin-xiuxian-2/\">\n      <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-xiuxian-2.svg\" alt=\"pypi\">\n  </a>\n</p>\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u4e00\u6b3e\u9002\u7528\u4e8eQQ\u7fa4\u7684\u4fee\u4ed9\u63d2\u4ef6,\u8bbe\u5b9a\u5f81\u96c6\u4e2d\uff0c\u6709\u597d\u7684\u60f3\u6cd5\u53ef\u4ee5\u63a8\u9001\u7ed9\u6211\u54e6~~~\n\n\n## \ud83d\udcbf \u5b89\u88c5\n\n\u8be6\u60c5\u53ef\u89c1 [\u6587\u6863](https://xiuxian.netlify.app/)\n\n### \u4e0b\u8f7d\n\n1. \u901a\u8fc7\u5305\u7ba1\u7406\u5668\u5b89\u88c5\uff0c\u53ef\u4ee5\u901a\u8fc7nb\uff0cpip\uff0c\u6216\u8005poetry\u7b49\u65b9\u5f0f\u5b89\u88c5\uff0c\u4ee5pip\u4e3a\u4f8b\n\n```\npip install nonebot_plugin_xiuxian_2 -U\n```\n\n2. \u624b\u52a8\u5b89\u88c5(\u5efa\u8bae)\n\n```\ngit clone https://ghproxy.com/https://github.com/QingMuCat/nonebot_plugin_xiuxian_2\n```\n\n2\u3001\u5982\u679c\u9047\u5230\u95ee\u9898\uff0c\u8bf7\u5148\u767e\u5ea6\u548c\u67e5\u770b\u4e0b\u65b9\u7684 \u3010\u4e00\u4e9b\u95ee\u9898\u3011\n\n3\u3001\u5982\u89e3\u51b3\u4e0d\u4e86\u8fdb\u4ea4\u6d41\u7fa4\uff1a[760517008](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=zIKrPPqNStgZnRtuLhiOv9woBQSMQurq&authKey=Nrqm0zDxYKP2Fon2MskbNRmZ588Rqm79lJvQyVYWtkh9vDFK1RGBK0UhqzehVyDw&noverify=0&group_code=760517008) \u63d0\u95ee\uff0c\u63d0\u95ee\u8bf7\u8d34\u4e0a\u5b8c\u6574\u7684\u65e5\u5fd7\n\n\n## \u914d\u7f6e\u6587\u4ef6\n1\u3001\u914d\u7f6e\u6587\u4ef6\u4e00\u822c\u5728data/xiuxian\u6587\u4ef6\u5939\u4e0b\uff0c\u81ea\u884c\u6309\u7167json\u683c\u5f0f\u4fee\u6539\u5373\u53ef\uff0c\u4e00\u4e9b\u5b57\u6bb5\u7684\u542b\u4e49\u53ef\u4ee5\u8fdb\u7fa4\u4ea4\u6d41<br>\n2\u3001\u5b50\u63d2\u4ef6\u7684\u914d\u7f6e\u4f1a\u5728\u63d2\u4ef6\u8fd0\u884c\u540e\u5728\u5b50\u63d2\u4ef6\u6587\u4ef6\u4e2d\u751f\u6210config.json\u6587\u4ef6\uff0c\u8be5\u6587\u4ef6\u5b57\u6bb5\u542b\u4e49\u5728\u540c\u7ea7\u76ee\u5f55\u7684xxxconfig.py\u6709\u5907\u6ce8\u3002\u6ce8\u610f\uff1a\u4fee\u6539\u914d\u7f6e\u53ea\u9700\u8981\u4fee\u6539json\u5373\u53ef\uff0c\u4fee\u6539.py\u6587\u4ef6\u7684\u8bdd\u9700\u8981\u5220\u9664json\u6587\u4ef6\u624d\u4f1a\u751f\u6548\uff0c\u4efb\u4f55\u4fee\u6539\u90fd\u9700\u8981\u91cd\u542fbot<br>\n3.\u5361\u56fe\u4e0b\u8f7d\u5730\u5740\uff1a[\u5361\u56fe](https://cowtransfer.com/s/82b90d2b879d43):\u53e3\u4ee4\uff1ak3jzr5\uff0c\u6587\u4ef6\u653e\u7f6e\u4e8edata/xiuxian\u76ee\u5f55\u4e0b<br>\n\n## \u98ce\u63a7\u914d\u7f6e\n```\n\u914d\u7f6e\u5730\u5740:\u4fee\u4ed9\u63d2\u4ef6\u4e0bxiuxian_config.py<br>\n\u5728\u53ea\u6709\u4e00\u4e2aqq\u94fe\u63a5\u7684\u60c5\u51b5\u4e0b\u98ce\u63a7\u914d\u7f6e\u5e94\u8be5\u5168\u90e8\u4e3a\u7a7a\uff0c\u5373\u4e0d\u914d\u7f6e<br>\nself.put_bot = []  # \u63a5\u6536\u6d88\u606fqq,\u4e3bqq,\u6846\u67b6\u5c06\u53ea\u5904\u7406\u6b64qq\u7684\u6d88\u606f\uff0c\u4e0d\u914d\u7f6e\u5c06\u9ed8\u8ba4\u8bbe\u7f6e\u7b2c\u4e00\u4e2a\u94fe\u63a5\u7684qq\u4e3a\u4e3bqq<br>\nself.main_bo = []  # \u8d1f\u8d23\u53d1\u9001\u6d88\u606f\u7684qq,\u8c03\u7528lay_out.py \u4e0brange_bot\u51fd\u6570\u7684\u60c5\u51b5\u4e0b\u9700\u8981\u586b\u5199<br>\nself.shield_group = []  # \u5c4f\u853d\u7684\u7fa4\u804a<br>\nself.layout_bot_dict = {{}}  # QQ\u6240\u8d1f\u8d23\u7684\u7fa4\u804a{{\u7fa4 :bot}}   \u5176\u4e2d bot\u7c7b\u578b []\u6216str <br>\n\u793a\u4f8b\uff1a {<br>\n    \"\u7fa4123\u7fa4\u53f7\" : \"\u5bf9\u5e94\u53d1\u9001\u6d88\u606f\u7684qq\u53f7\"<br>\n    \"\u7fa4456\u7fa4\u53f7\" \uff1a [\"\u5bf9\u5e94\u53d1\u9001\u6d88\u606f\u7684qq\u53f71\",\"\u5bf9\u5e94\u53d1\u9001\u6d88\u606f\u7684qq\u53f72\"]<br>\n}\n\u5f53\u540e\u9762qq\u53f7\u4e3a\u4e00\u4e2a\u5b57\u7b26\u4e32\u65f6\u4e3a\u4e00\u5bf9\u4e00\uff0c\u4e3a\u5217\u8868\u65f6\u4e3a\u591a\u5bf9\u4e00<br>\n```\n## \u4e00\u4e9b\u95ee\u9898\n\n- pip install\u7684\u586b\u8fd9\u4e2a\n  ```\n     plugins = [\"nonebot_plugin_xiuxian_2\"]\n  ```\n- \u624b\u52a8\u5b89\u88c5\u7684\u586b\u8fd9\u4e2a\n  ```\n    plugin_dirs = [\"nonebot_plugin_xiuxian_2\"]\n  ```\n  \u6216\n    `bot.py`\u4e2d\u6dfb\u52a0\n- pip install\u7684\u586b\u8fd9\u4e2a\n  ```\n     nonebot.load_plugin(\"nonebot_plugin_xiuxian_2\")\n  ```\n- \u624b\u52a8\u5b89\u88c5\u7684\u586b\u8fd9\u4e2a\n  ```\n    nonebot.load_plugins(\"src/plugins\", \"nonebot_plugin_xiuxian_2\")\n  ```\n\n\n# \ud83c\udf89 \u7279\u522b\u611f\u8c22\n\n- [NoneBot2](https://github.com/nonebot/nonebot2)\uff1a\u672c\u63d2\u4ef6\u5b9e\u88c5\u7684\u5f00\u53d1\u6846\u67b6\uff0cNB\u5929\u4e0b\u7b2c\u4e00\u53ef\u7231\u3002\n- [go-cqhttp](https://github.com/Mrs4s/go-cqhttp)\uff1a\u7a33\u5b9a\u5b8c\u5584\u7684 CQHTTP \u5b9e\u73b0\u3002\n- [nonebot_plugin_xiuxian](https://github.com/s52047qwas/nonebot_plugin_xiuxian)\uff1a\u539f\u7248\u4fee\u4ed9\n\n\n# \ud83c\udf89\u652f\u6301\n\n- \u5927\u5bb6\u559c\u6b22\u7684\u8bdd\u53ef\u4ee5\u7ed9\u8fd9\u4e2a\u9879\u76ee\u70b9\u4e2astar\n\n- \u6709bug\u3001\u610f\u89c1\u548c\u5efa\u8bae\u90fd\u6b22\u8fce\u63d0\u4ea4 [Issues](https://github.com/QingMuCat/nonebot_plugin_xiuxian_2.0/issues) \n- \u6216\u8005\u8054\u7cfb\u8fdb\u5165QQ\u4ea4\u6d41\u7fa4\uff1a[760517008](http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=zIKrPPqNStgZnRtuLhiOv9woBQSMQurq&authKey=Nrqm0zDxYKP2Fon2MskbNRmZ588Rqm79lJvQyVYWtkh9vDFK1RGBK0UhqzehVyDw&noverify=0&group_code=760517008)\n- 3.0\u7248\u672c\u6b63\u5728\u8def\u4e0a\uff0c\u656c\u8bf7\u671f\u5f85\n\n# \u8bb8\u53ef\u8bc1\n\u672c\u9879\u76ee\u4f7f\u7528 [MIT](https://choosealicense.com/licenses/mit/) \u4f5c\u4e3a\u5f00\u6e90\u8bb8\u53ef\u8bc1\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "\u4fee\u4ed9\u63d2\u4ef6",
    "version": "2.9.2.2",
    "project_urls": {
        "Homepage": "https://github.com/QingMuCat/nonebot_plugin_xiuxian_2"
    },
    "split_keywords": [
        "pip",
        "nonebot2",
        "\u6587\u6e38",
        "\u4fee\u4ed9"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f4475c8b4b980e6839e04dc76c24386355f2f41bc5974f2112653660cff76527",
                "md5": "8e36359da34d40437daa1f1cc9a2bdf6",
                "sha256": "9ccc521e1e498c20bee15295902cfdac46a6311cc5cf9a593832d208efcc99fe"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_xiuxian_2-2.9.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8e36359da34d40437daa1f1cc9a2bdf6",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 160493,
            "upload_time": "2023-05-05T13:42:32",
            "upload_time_iso_8601": "2023-05-05T13:42:32.700880Z",
            "url": "https://files.pythonhosted.org/packages/f4/47/5c8b4b980e6839e04dc76c24386355f2f41bc5974f2112653660cff76527/nonebot_plugin_xiuxian_2-2.9.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d452083ac9907cc30f227d49c173cec08d8fcdcf6a0a805566ba98992c5a0141",
                "md5": "6ceb253d0089a2576d728b66bb241c38",
                "sha256": "ace249a31d2b487816a186a967fc06b43b6bc08968a7c846b82b3eeef72c25b0"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_xiuxian_2-2.9.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "6ceb253d0089a2576d728b66bb241c38",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 136428,
            "upload_time": "2023-05-05T13:42:35",
            "upload_time_iso_8601": "2023-05-05T13:42:35.024192Z",
            "url": "https://files.pythonhosted.org/packages/d4/52/083ac9907cc30f227d49c173cec08d8fcdcf6a0a805566ba98992c5a0141/nonebot_plugin_xiuxian_2-2.9.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-05-05 13:42:35",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "QingMuCat",
    "github_project": "nonebot_plugin_xiuxian_2",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "nonebot-plugin-xiuxian-2"
}
        
Elapsed time: 0.08580s