每日抽取属于自己的小猪
Project description
🐖 食用方法 🐖
使用 pip 安装:
pip install nonebot_plugin_rollpig
或者使用 nb-cli 安装:
nb plugin install nonebot_plugin_rollpig
或者直接 Download ZIP
🐷 使用 🐷
今日小猪 - 抽取今天属于你的小猪类型 🐖
- 每个用户每天只能抽取一次 🐽
- 重复抽取不会改变结果 🐷
- 每天 0 点自动重置 🐖
🐖 新增小猪 🐖
插件资源路径:
nonebot_plugin_rollpig/resource
- pig.json 小猪信息,例如:
[
{
"id": "pig",
"name": "猪",
"description": "普通小猪",
"analysis": "你性格温和,喜欢简单的生活,容易满足。在别人眼中可能有些慵懒,但你知道如何享受生活的美好。"
}
]
- image/ 小猪图片
- 图片命名需和信息中的
id一致 - 支持图片类型:
["png", "jpg", "jpeg", "webp", "gif"]
- 图片命名需和信息中的
🐽 目录结构示例 🐽
nonebot_plugin_rollpig/
├─ __init__.py
├─ resource/
│ ├─ pig.json
│ └─ image/
│ ├─ pig.png
🐖 注意事项 🐖
- 新增小猪时只需在
pig.json添加对象,并将对应图片放到image/文件夹即可 🐷 - 图片自动按 id 匹配,无需在 JSON 中写图片后缀 🐖
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nonebot_plugin_rollpig-0.1.3.tar.gz
(560.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_rollpig-0.1.3.tar.gz.
File metadata
- Download URL: nonebot_plugin_rollpig-0.1.3.tar.gz
- Upload date:
- Size: 560.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c36f78fa75e53d90bffd8b363573dbcb714cd3702bcc847611fb79c15252a791
|
|
| MD5 |
246665f994dd7e89089ff8aedf24109e
|
|
| BLAKE2b-256 |
0f39e9cc6eb942352f31f289618a69b7699f8d90ae3073ac8a3572b8560eb760
|
File details
Details for the file nonebot_plugin_rollpig-0.1.3-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_rollpig-0.1.3-py3-none-any.whl
- Upload date:
- Size: 565.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b13299d747584e0ab8a5ada90e3560d7298a540a5a9170b192a31f0689ce7d43
|
|
| MD5 |
4c9af4661046a1a8666f0496cbbba172
|
|
| BLAKE2b-256 |
9b5ae195ab7d96dfb95f60d7836d524537dacb3ad027589224b8725a100f9975
|