Metadata-Version: 2.1
Name: nonebot-plugin-pcrjjc
Version: 0.8.1
Summary: pcrjjc排名监测插件
Author-email: reine-ishyanami <2402979195@qq.com>
License: AGPL-3
Project-URL: Homepage, https://github.com/reine-ishyanami/nonebot-plugin-pcrjjc
Project-URL: Bug Tracker, https://github.com/reine-ishyanami/nonebot-plugin-pcrjjc/issues
Classifier: Framework :: Pydantic
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Natural Language :: Chinese (Simplified)
Requires-Python: <4.0,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: msgpack>=1.0.5
Requires-Dist: requests>=2.30.0
Requires-Dist: Pillow>=9.5.0
Requires-Dist: pydantic>=1.10.14
Requires-Dist: python-dateutil>=2.8.2
Requires-Dist: pycryptodome>=3.18.0
Requires-Dist: nonebot2>=2.0.0
Requires-Dist: nonebot-adapter-onebot>=2.2.3
Requires-Dist: nonebot-plugin-apscheduler>=0.3.0

# nonebot-plugin-pcrjjc

### 介绍

* 基于[pcrjjc_huannai](https://github.com/SonderXiaoming/pcrjjc_huannai)的代码基础上进行重构
* 可独立作为nonebot2插件使用，不依赖于HoshinoBot

### 安装和更新

##### 使用nb-cli安装与更新

在 nonebot2 项目的根目录下打开命令行，执行

```shell
nb plugin install nonebot-plugin-pcrjjc --upgrade
```

##### 使用pip安装和更新

在 nonebot2 项目的根目录下打开命令行，进入nonebot2项目虚拟环境，执行

```shell
pip install --upgrade nonebot-plugin-pcrjjc
```

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

```toml
plugins = ["nonebot_plugin_pcrjjc"]
```

### 具体指令如下

![竞技场帮助指令](./img/help.png)

### 配置项

**在nonebot2项目中的`.env`开头的文件添加下表配置项，其中非必填项可不填**

|        配置项        |    类型     | 是否必填  |   默认值   |           说明           |
|:-----------------:|:---------:|:-----:|:-------:|:----------------------:|
|    SUPERUSERS     | list[str] | True  |         | 超级用户QQ号，示例：["114514"]  |
|   PCRJJC_GROUP    |    str    | False |  None   | 当私聊不可用时，使用指定群聊推送要私聊的消息 |
|       OTTO        |   bool    | False |  True   |    是否自动过验证码（不建议修改）     |
|      MAX_PRI      |    int    | False |    0    |         最大私聊人数         |
|     MAX_PCRID     |    int    | False |    8    |       每人绑定的最大数量        |
|    MAX_HISTORY    |    int    | False |   50    |        单人最多历史记录        |
|   NOTICE_CD_MIN   |    int    | False |   10    |     上线提醒时间间隔（单位：分）     |
|  REFRESH_SECOND   |    int    | False |    3    |      排名刷新频率（单位：秒）      |
|  PCRJJC_ACCOUNTS  |   list    | True  |   ""    |       登录账号（模板如下）       |
| FONT_DOWNLOAD_URL |    str    | False |    略    |        默认字体下载地址        |

登录账号（即PCR_ACCOUNTS）模板

```python
PCRJJC_ACCOUNTS='[
    {
     "account": "account1",
     "password": "password"
    },
    {
     "account": "account2",
     "password": "password"
    }
]'
```

