📖 介绍
世界计划插件,拥有组建车队、生成角色表情包、模拟抽卡等功能,持续开发中
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-pjsekaihelper
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-pjsekaihelper
pdm
pdm add nonebot-plugin-pjsekaihelper
poetry
poetry add nonebot-plugin-pjsekaihelper
conda
conda install nonebot-plugin-pjsekaihelper
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_pjsekaihelper"]
⚙️ 配置
在 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抽卡 | 群员 | 否 | 群聊 | 进行模拟抽卡 |
⌨ 开发计划
🟩 跨群车队组建
🟩 表情包生成
🟩 随机抽卡
🟨 用户数据处理
💡 致谢
感谢 lgc-NB2Dev/SekaiStickers 的表情包生成源码 (我是抄的一点没改)
卡面数据来源:Sekai.best
效果图
Metadata
Release files for nonebot-plugin-pjsekaihelper 1.2.10
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 | Actions |
|---|---|---|---|---|
| nonebot_plugin_pjsekaihelper-1.2.10.tar.gz | 18.5 kB | Without provenance | Details for nonebot_plugin_pjsekaihelper-1.2.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_pjsekaihelper-1.2.10-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_pjsekaihelper-1.2.10-py3-none-any.whl |
Total release size: 38.5 kB
Release files / nonebot_plugin_pjsekaihelper-1.2.10.tar.gz
| Download URL | nonebot_plugin_pjsekaihelper-1.2.10.tar.gz |
|---|---|
| Size | 18.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62dbcc183f6aa36378e2952586f3e4008dc1968bbe62cb3123c344d7bbf08c69
|
|
BLAKE2b-256 checksum How to use checksums |
b940b06c766a06eb7741aaf50f83d8990e2ad73d540cc54d6281ee6af711c92c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Release files / nonebot_plugin_pjsekaihelper-1.2.10-py3-none-any.whl
| Download URL | nonebot_plugin_pjsekaihelper-1.2.10-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
622e4f58855bf3a769f46ec0ec8b430823fb43c45ee96ff8149c8d8903db3b0a
|
|
BLAKE2b-256 checksum How to use checksums |
cf4ff1c7ae4614adf79caa2deb33464a444d25e7cd6567f3a1d21b6ed02250fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Security for nonebot-plugin-pjsekaihelper 1.2.10
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.