介绍
本插件为官方插件包之一,通过'/jrrp' 获取今日人品!
安装方法
使用包管理器安装
在项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install axtbot-plugin-jrrp
pdm
pdm add axtbot-plugin-jrrp
poetry
poetry add axtbot-plugin-jrrp
使用源码安装
在项目的插件目录下,打开命令行,输入以下内容 ```bash git clone https://github.com/AxT-Team/axtbot-plugin-jrrp ```把src中的文件夹拷贝至插件目录下
打开项目根目录下的 pyproject.toml 文件, 在 [tool.axtbot] 部分追加写入
plugins = ["axtbot_plugin_jrrp"]
配置
本插件需要在.env中补充以下配置:
JRRP_IMAGE_URL="https://example.com/axtbot/" # 图片地址 接下来0-100的 JPG 图片会在这个目录下进行对应
JRRP_SIZE_0="#300px #100px" # 如下是 0 1-20 21-40 41-60 61-80 81-99 100 的不同JPG图片的宽高 建议设置
JRRP_SIZE_1_20="#87px #100px"
JRRP_SIZE_21_40="#125px #100px"
JRRP_SIZE_41_60="#120px #100px"
JRRP_SIZE_61_80="#100px #100px"
JRRP_SIZE_81_99="#115px #100px"
JRRP_SIZE_100="#264px #100px"
JRRP_DEFAULT_DATABASE="./data/jrrp.db" # 存储普通今日人品的数据库文件
JRRP_CUSTOM=false # 是否启用自定义模式 自定义模式下可设定下方的所有的CUS选项
JRRP_CUSJRRP=100 # 自定义今日人品数额
JRRP_CUSTOM1="您今日的人品值是:2025!!!" # 自定义内容第一行
JRRP_CUSTOM2="AxT 团队在此祝福大家新年快乐~" # 自定义内容第二行
JRRP_CUSTOM3="在这喜庆的日子,祝您在新的一年里:万事如意,心想事成,顺风顺水顺财神!" # 第三行
JRRP_IMG="https://example.com/axtbot/100.jpg" # 自定义图片 不受上面的URL限制
JRRP_CUS_SIZE="#264px #100px" # 自定义图片宽高
JRRP_CUSTOM_DATABASE="./data/customjrrp.db" # 存储自定义今日人品的数据库文件 不建议使用同一个文件
Metadata
Release files for axtbot-plugin-jrrp 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| axtbot_plugin_jrrp-1.0.0.tar.gz | 5.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| axtbot_plugin_jrrp-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.1 kB
Release files / axtbot_plugin_jrrp-1.0.0.tar.gz
| Download URL | axtbot_plugin_jrrp-1.0.0.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
946d2aedb5224475dec9f31672ab5b78f0e3ab3ee35f17fba452afe053e6aac6
|
|
BLAKE2b-256 checksum How to use checksums |
fd3970bb18d3ee62256a6f440d79200e0291bcda9e6015132916dffedb5e2ae9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure
|
Release files / axtbot_plugin_jrrp-1.0.0-py3-none-any.whl
| Download URL | axtbot_plugin_jrrp-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
eaf23925a48defee4a93f2d233865e1cf9660e3f15e23e8224d9c4bb46c5bc80
|
|
BLAKE2b-256 checksum How to use checksums |
1935381f35b4a3f09c854018983f8298380e1524d3b0d4942b44db410ac7d711
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure
|
Security for axtbot-plugin-jrrp 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.