Skip to main content

今天是什么小猪

Project description

logo

🐖 nonebot-plugin-rollpig 🐖

今天是什么小猪 🐽


✨ 特性 ✨

  • 今日小猪: 抽取今天属于你的小猪类型 🐖

  • 随机小猪: 从 PigHub 随机获取猪猪图 🐖

  • 找猪: 从 PigHub 模糊搜索猪猪图 🐖


📦 安装方式 📦

使用 pip 安装:

pip install nonebot_plugin_rollpig

或者使用 nb-cli 安装:

nb plugin install nonebot_plugin_rollpig

或者直接 Download ZIP


🕹️ 使用方法 🕹️

今日小猪 (今日小猪) - 抽取今天属于你的小猪。
  用法:今日小猪

随机小猪 (随机小猪) - 从PigHub随机获取一张猪猪图。
  用法:随机小猪 [数量]
  [数量]:可选参数,指定要抽取的猪猪数量,默认为 1,最大为 20。

找猪 (找猪) - 根据关键词查找猪猪。
  用法:找猪 [关键词]
  [关键词]:要查找的猪猪的关键词。

🐷 新增小猪 🐷

插件资源路径:

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.2.9.tar.gz (10.9 MB 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.2.9-py3-none-any.whl (11.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_rollpig-0.2.9.tar.gz
  • Upload date:
  • Size: 10.9 MB
  • 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.2.9.tar.gz
Algorithm Hash digest
SHA256 641a8d2238027b51781cd89684f3de01e2a3207b5c3ff87cff5b6faa6f25ab04
MD5 1b195e441c65239849ff39e2f86058bf
BLAKE2b-256 11164caa27d92bfdca6594655aae12849bb8267e01297ae165987c7ecca142c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_rollpig-0.2.9-py3-none-any.whl
Algorithm Hash digest
SHA256 a72ddaf8961592d0d153f9b0317ef4136817a63b9abf40021f8c420c4e39d013
MD5 ec1d3e8af7fb79f565fc8f17bdbd7e24
BLAKE2b-256 d6d79f0d1833dde99319ed90c0de209537c2f24c12061775dfe8b7a0dae40a71

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