nonebot-plugin-pjsekaihelper


Namenonebot-plugin-pjsekaihelper JSON
Version 1.2.10 PyPI version JSON
download
home_pageNone
Summary世界计划插件,拥有组建车队、生成角色表情包、模拟抽卡等功能,持续开发中
upload_time2024-12-26 09:43:37
maintainerNone
docs_urlNone
authorAnt1
requires_python>=3.9
licenseMIT License Copyright (c) 2024 Ant1 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords nonebot2 projectsekai pjsk
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-pjsekaihelper

_✨ 世界计划小助手 ✨_

[![LICENSE](https://img.shields.io/github/license/Ant1816/nonebot-plugin-pjsekaihelper.svg)](https://github.com/Ant1816/nonebot-plugin-pjsekaihelper/blob/master/LICENSE)
[![PYPI](https://img.shields.io/pypi/v/nonebot-plugin-pjsekaihelper.svg)](https://pypi.python.org/pypi/nonebot-plugin-pjsekaihelper)
[![Python3.9+](https://img.shields.io/badge/Python-3.9+-blue)](https://www.python.org)
[![nonebot2](https://img.shields.io/badge/NoneBot2-2.3.1+-red)](https://github.com/nonebot/nonebot2)
[![onebotv11](https://img.shields.io/badge/OneBot-v11-yellow)](https://github.com/botuniverse/onebot-11)

</div>

## 📖 介绍

世界计划插件,拥有组建车队、生成角色表情包、模拟抽卡等功能,持续开发中

<div align="center">

## 有问题或想法欢迎提issue以及pr!!!

</div>

## 💿 安装

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

    nb plugin install nonebot-plugin-pjsekaihelper

</details>

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

<details>
<summary>pip</summary>

    pip install nonebot-plugin-pjsekaihelper
</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-pjsekaihelper
</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-pjsekaihelper
</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-pjsekaihelper
</details>

打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_pjsekaihelper"]

</details>

## ⚙️ 配置

在 nonebot2 项目的`.env`文件中添加下表中的必填配置

|         配置项          | 必填 |   默认值   |                            说明                             |
|:--------------------:|:--:|:-------:|:---------------------------------------------------------:|
|     `API_TIMEOUT`      | 否  |  `None`   |   如后台经常报错WebSocket call api send_msg timeout, 请修改此项 单位秒   |
| `PJSK_ASSETS_PREFIX` | 否  |   ...   | TheOriginalAyaka/sekai-stickers 仓库 GitHubUserContent 地址列表 |
|  `PJSK_REPO_PREFIX`  | 否  |   ...   |                本仓库 GitHubUserContent 地址列表                 |
| `PJSK_HELP_AS_IMAGE` | 否  | `True`  |                      是否将帮助信息渲染为图片发送                       |
|     `PJSK_REPLY`     | 否  | `True`  |                         是否回复消息发送者                         |
|   `PJSK_REQ_RETRY`   | 否  |   `1`   |                      插件请求 URL 时的重试次数                      |
|   `PJSK_REQ_PROXY`   | 否  | `None`  |                       插件下载资源时使用的代理                        |
|   `PJSK_USE_CACHE`   | 否  | `True`  |                       是否缓存插件生成的所有图片                       |
|  `PJSK_CLEAR_CACHE`  | 否  | `False` |             是否在插件启动时清空缓存文件夹,禁用时只会清理非表情包的图片缓存              |

## 🎉 使用
### 指令表
| 指令 | 权限 | 需要@ | 范围 |        说明        |
|:-----:|:----:|:----:|:----:|:----------------:|
| pjsk help | 群员 | 否 | 群聊 |      获取指令帮助      |
| 建车队/组队/组车队 <房间号> <服务器(日/台/韩/国际/中)> | 群员 | 否 | 群聊 |      创建一个车队      |
| 删除车队/删队/删车队 <房间号> | 群主/管理员/SUPERUSER | 否 | 群聊 |      删除指定车队      |
| 车队号/房间号/车号/有烤吗/有烤嘛/ycm | 群员 | 否 | 群聊 |      发送房间列表      |
| 重置车队列表 | SUPERUSER | 否 | 群聊 |      清空房间列表      |
| pjsk表情列表 | 群员 | 否 | 群聊 |    查看所有角色表情包     |
| pjsk表情 | 群员 | 否 | 群聊 |     进入交互创建模式     |
| pjsk表情 -h | 群员 | 否 | 群聊 | 进入Shell-like创建模式 |
| pjsk抽卡 | 群员 | 否 | 群聊 | 进行模拟抽卡 |

## ⌨  开发计划
&#x1F7E9; 跨群车队组建

&#x1F7E9; 表情包生成

&#x1F7E9; 随机抽卡

&#x1F7E8; 用户数据处理

## 💡 致谢
感谢 [lgc-NB2Dev/SekaiStickers](https://github.com/lgc-NB2Dev/nonebot-plugin-pjsk/) 的表情包生成源码 (~~我是抄的一点没改~~)

卡面数据来源:[Sekai.best](https://sekai.best/card)

## 效果图
![效果图](https://raw.githubusercontent.com/Ant1816/Ant1816/refs/heads/main/pjsekai.png)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "nonebot-plugin-pjsekaihelper",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "Ant1 <glz15757339816@gmail.com>",
    "keywords": "nonebot2, projectsekai, pjsk",
    "author": "Ant1",
    "author_email": "glz15757339816@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/b9/40/b06c766a06eb7741aaf50f83d8990e2ad73d540cc54d6281ee6af711c92c/nonebot_plugin_pjsekaihelper-1.2.10.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n  <br>\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-pjsekaihelper\n\n_\u2728 \u4e16\u754c\u8ba1\u5212\u5c0f\u52a9\u624b \u2728_\n\n[![LICENSE](https://img.shields.io/github/license/Ant1816/nonebot-plugin-pjsekaihelper.svg)](https://github.com/Ant1816/nonebot-plugin-pjsekaihelper/blob/master/LICENSE)\n[![PYPI](https://img.shields.io/pypi/v/nonebot-plugin-pjsekaihelper.svg)](https://pypi.python.org/pypi/nonebot-plugin-pjsekaihelper)\n[![Python3.9+](https://img.shields.io/badge/Python-3.9+-blue)](https://www.python.org)\n[![nonebot2](https://img.shields.io/badge/NoneBot2-2.3.1+-red)](https://github.com/nonebot/nonebot2)\n[![onebotv11](https://img.shields.io/badge/OneBot-v11-yellow)](https://github.com/botuniverse/onebot-11)\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u4e16\u754c\u8ba1\u5212\u63d2\u4ef6\uff0c\u62e5\u6709\u7ec4\u5efa\u8f66\u961f\u3001\u751f\u6210\u89d2\u8272\u8868\u60c5\u5305\u3001\u6a21\u62df\u62bd\u5361\u7b49\u529f\u80fd\uff0c\u6301\u7eed\u5f00\u53d1\u4e2d\n\n<div align=\"center\">\n\n## \u6709\u95ee\u9898\u6216\u60f3\u6cd5\u6b22\u8fce\u63d0issue\u4ee5\u53capr\uff01\uff01\uff01\n\n</div>\n\n## \ud83d\udcbf \u5b89\u88c5\n\n<details open>\n<summary>\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    nb plugin install nonebot-plugin-pjsekaihelper\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    pip install nonebot-plugin-pjsekaihelper\n</details>\n<details>\n<summary>pdm</summary>\n\n    pdm add nonebot-plugin-pjsekaihelper\n</details>\n<details>\n<summary>poetry</summary>\n\n    poetry add nonebot-plugin-pjsekaihelper\n</details>\n<details>\n<summary>conda</summary>\n\n    conda install nonebot-plugin-pjsekaihelper\n</details>\n\n\u6253\u5f00 nonebot2 \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 `pyproject.toml` \u6587\u4ef6, \u5728 `[tool.nonebot]` \u90e8\u5206\u8ffd\u52a0\u5199\u5165\n\n    plugins = [\"nonebot_plugin_pjsekaihelper\"]\n\n</details>\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u5728 nonebot2 \u9879\u76ee\u7684`.env`\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0b\u8868\u4e2d\u7684\u5fc5\u586b\u914d\u7f6e\n\n|         \u914d\u7f6e\u9879          | \u5fc5\u586b |   \u9ed8\u8ba4\u503c   |                            \u8bf4\u660e                             |\n|:--------------------:|:--:|:-------:|:---------------------------------------------------------:|\n|     `API_TIMEOUT`      | \u5426  |  `None`   |   \u5982\u540e\u53f0\u7ecf\u5e38\u62a5\u9519WebSocket call api send_msg timeout, \u8bf7\u4fee\u6539\u6b64\u9879 \u5355\u4f4d\u79d2   |\n| `PJSK_ASSETS_PREFIX` | \u5426  |   ...   | TheOriginalAyaka/sekai-stickers \u4ed3\u5e93 GitHubUserContent \u5730\u5740\u5217\u8868 |\n|  `PJSK_REPO_PREFIX`  | \u5426  |   ...   |                \u672c\u4ed3\u5e93 GitHubUserContent \u5730\u5740\u5217\u8868                 |\n| `PJSK_HELP_AS_IMAGE` | \u5426  | `True`  |                      \u662f\u5426\u5c06\u5e2e\u52a9\u4fe1\u606f\u6e32\u67d3\u4e3a\u56fe\u7247\u53d1\u9001                       |\n|     `PJSK_REPLY`     | \u5426  | `True`  |                         \u662f\u5426\u56de\u590d\u6d88\u606f\u53d1\u9001\u8005                         |\n|   `PJSK_REQ_RETRY`   | \u5426  |   `1`   |                      \u63d2\u4ef6\u8bf7\u6c42 URL \u65f6\u7684\u91cd\u8bd5\u6b21\u6570                      |\n|   `PJSK_REQ_PROXY`   | \u5426  | `None`  |                       \u63d2\u4ef6\u4e0b\u8f7d\u8d44\u6e90\u65f6\u4f7f\u7528\u7684\u4ee3\u7406                        |\n|   `PJSK_USE_CACHE`   | \u5426  | `True`  |                       \u662f\u5426\u7f13\u5b58\u63d2\u4ef6\u751f\u6210\u7684\u6240\u6709\u56fe\u7247                       |\n|  `PJSK_CLEAR_CACHE`  | \u5426  | `False` |             \u662f\u5426\u5728\u63d2\u4ef6\u542f\u52a8\u65f6\u6e05\u7a7a\u7f13\u5b58\u6587\u4ef6\u5939\uff0c\u7981\u7528\u65f6\u53ea\u4f1a\u6e05\u7406\u975e\u8868\u60c5\u5305\u7684\u56fe\u7247\u7f13\u5b58              |\n\n## \ud83c\udf89 \u4f7f\u7528\n### \u6307\u4ee4\u8868\n| \u6307\u4ee4 | \u6743\u9650 | \u9700\u8981@ | \u8303\u56f4 |        \u8bf4\u660e        |\n|:-----:|:----:|:----:|:----:|:----------------:|\n| pjsk help | \u7fa4\u5458 | \u5426 | \u7fa4\u804a |      \u83b7\u53d6\u6307\u4ee4\u5e2e\u52a9      |\n| \u5efa\u8f66\u961f/\u7ec4\u961f/\u7ec4\u8f66\u961f <\u623f\u95f4\u53f7> <\u670d\u52a1\u5668(\u65e5/\u53f0/\u97e9/\u56fd\u9645/\u4e2d)> | \u7fa4\u5458 | \u5426 | \u7fa4\u804a |      \u521b\u5efa\u4e00\u4e2a\u8f66\u961f      |\n| \u5220\u9664\u8f66\u961f/\u5220\u961f/\u5220\u8f66\u961f <\u623f\u95f4\u53f7> | \u7fa4\u4e3b/\u7ba1\u7406\u5458/SUPERUSER | \u5426 | \u7fa4\u804a |      \u5220\u9664\u6307\u5b9a\u8f66\u961f      |\n| \u8f66\u961f\u53f7/\u623f\u95f4\u53f7/\u8f66\u53f7/\u6709\u70e4\u5417/\u6709\u70e4\u561b/ycm | \u7fa4\u5458 | \u5426 | \u7fa4\u804a |      \u53d1\u9001\u623f\u95f4\u5217\u8868      |\n| \u91cd\u7f6e\u8f66\u961f\u5217\u8868 | SUPERUSER | \u5426 | \u7fa4\u804a |      \u6e05\u7a7a\u623f\u95f4\u5217\u8868      |\n| pjsk\u8868\u60c5\u5217\u8868 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a |    \u67e5\u770b\u6240\u6709\u89d2\u8272\u8868\u60c5\u5305     |\n| pjsk\u8868\u60c5 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a |     \u8fdb\u5165\u4ea4\u4e92\u521b\u5efa\u6a21\u5f0f     |\n| pjsk\u8868\u60c5 -h | \u7fa4\u5458 | \u5426 | \u7fa4\u804a | \u8fdb\u5165Shell-like\u521b\u5efa\u6a21\u5f0f |\n| pjsk\u62bd\u5361 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a | \u8fdb\u884c\u6a21\u62df\u62bd\u5361 |\n\n## \u2328  \u5f00\u53d1\u8ba1\u5212\n&#x1F7E9; \u8de8\u7fa4\u8f66\u961f\u7ec4\u5efa\n\n&#x1F7E9; \u8868\u60c5\u5305\u751f\u6210\n\n&#x1F7E9; \u968f\u673a\u62bd\u5361\n\n&#x1F7E8; \u7528\u6237\u6570\u636e\u5904\u7406\n\n## \ud83d\udca1 \u81f4\u8c22\n\u611f\u8c22 [lgc-NB2Dev/SekaiStickers](https://github.com/lgc-NB2Dev/nonebot-plugin-pjsk/) \u7684\u8868\u60c5\u5305\u751f\u6210\u6e90\u7801 \uff08~~\u6211\u662f\u6284\u7684\u4e00\u70b9\u6ca1\u6539~~\uff09\n\n\u5361\u9762\u6570\u636e\u6765\u6e90\uff1a[Sekai.best](https://sekai.best/card)\n\n## \u6548\u679c\u56fe\n![\u6548\u679c\u56fe](https://raw.githubusercontent.com/Ant1816/Ant1816/refs/heads/main/pjsekai.png)\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Ant1  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "\u4e16\u754c\u8ba1\u5212\u63d2\u4ef6\uff0c\u62e5\u6709\u7ec4\u5efa\u8f66\u961f\u3001\u751f\u6210\u89d2\u8272\u8868\u60c5\u5305\u3001\u6a21\u62df\u62bd\u5361\u7b49\u529f\u80fd\uff0c\u6301\u7eed\u5f00\u53d1\u4e2d",
    "version": "1.2.10",
    "project_urls": {
        "changelog": "https://github.com/Ant1816/nonebot-plugin-pjsekaihelper/commits/master/",
        "documentation": "https://github.com/Ant1816/nonebot-plugin-pjsekaihelper/blob/master/README.md",
        "homepage": "https://github.com/Ant1816/nonebot-plugin-pjsekaihelper",
        "repository": "https://github.com/Ant1816/nonebot-plugin-pjsekaihelper"
    },
    "split_keywords": [
        "nonebot2",
        " projectsekai",
        " pjsk"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cf4ff1c7ae4614adf79caa2deb33464a444d25e7cd6567f3a1d21b6ed02250fc",
                "md5": "c7f614d0e5df175d3b67225637e7f58f",
                "sha256": "622e4f58855bf3a769f46ec0ec8b430823fb43c45ee96ff8149c8d8903db3b0a"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_pjsekaihelper-1.2.10-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c7f614d0e5df175d3b67225637e7f58f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 19936,
            "upload_time": "2024-12-26T09:43:36",
            "upload_time_iso_8601": "2024-12-26T09:43:36.112198Z",
            "url": "https://files.pythonhosted.org/packages/cf/4f/f1c7ae4614adf79caa2deb33464a444d25e7cd6567f3a1d21b6ed02250fc/nonebot_plugin_pjsekaihelper-1.2.10-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b940b06c766a06eb7741aaf50f83d8990e2ad73d540cc54d6281ee6af711c92c",
                "md5": "3947be01c4f04d5e9c859d50045e083a",
                "sha256": "62dbcc183f6aa36378e2952586f3e4008dc1968bbe62cb3123c344d7bbf08c69"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_pjsekaihelper-1.2.10.tar.gz",
            "has_sig": false,
            "md5_digest": "3947be01c4f04d5e9c859d50045e083a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 18521,
            "upload_time": "2024-12-26T09:43:37",
            "upload_time_iso_8601": "2024-12-26T09:43:37.659264Z",
            "url": "https://files.pythonhosted.org/packages/b9/40/b06c766a06eb7741aaf50f83d8990e2ad73d540cc54d6281ee6af711c92c/nonebot_plugin_pjsekaihelper-1.2.10.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-12-26 09:43:37",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Ant1816",
    "github_project": "nonebot-plugin-pjsekaihelper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-pjsekaihelper"
}
        
Elapsed time: 0.38159s