Skip to main content

每日抽取属于自己的小猪

Project description

logo

🐖 nonebot-plugin-rollpig 🐖

今天是什么小猪 🐽

🐖 食用方法 🐖

使用 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


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.1.tar.gz (560.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_rollpig-0.1.1-py3-none-any.whl (565.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_rollpig-0.1.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_rollpig-0.1.1.tar.gz
  • Upload date:
  • Size: 560.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.0

File hashes

Hashes for nonebot_plugin_rollpig-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aa216d727b5fd02bd8d11ad640ae5742f0846e5cdeb5668382e6efc40d94967d
MD5 fdfc4161f2f95a8c3464d285e6edfdfd
BLAKE2b-256 5cfbd1187450a9b0bde7c19c033677cc4188b5c9ecd7c1784360e15ec24e9d53

See more details on using hashes here.

File details

Details for the file nonebot_plugin_rollpig-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_rollpig-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8dd2b8206030c487855749a71cfd7be01902fe42ed9765540415b4153d64cbfe
MD5 20311591c9d4d6a5e65b104f80960788
BLAKE2b-256 b6f90b965ec4e96fb6e66e0ca3a4a5977669aabdd7cd33e6402f2dacede8d059

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page