Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-capoo

✨ 一个发送指令就能让你的 bot 发出可爱的 capoo 的图片的插件 ✨

license pypi python

📖 介绍

capoo 实在是太可爱了,所以我收集了几百张 capoo 的表情包。这个插件用于让 bot 发送 capoo 的表情包。

该插件只能简单地从我的图源里发送表情包。如果想要更实用的插件可以移步 nonebot-plugin-randpic 插件。

默认由 nonebot-plugin-localstore 来指定图片存储路径,你也可以通过 capoo_path 参数来自定义存储路径。

插件会在设定好的路径下创建 capoo/picture 文件夹,之后会从图源拷贝所有图片资源到该文件夹下。

随机发送图片是用的random库。

如果你有更多可爱的、并且我未存储的,很欢迎你通过邮箱: hu_parry@qq.com 私信我,我将很感谢你的扩充。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-capoo
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-capoo
pdm
pdm add nonebot-plugin-capoo
poetry
poetry add nonebot-plugin-capoo
conda
conda install nonebot-plugin-capoo

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_capoo"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
capoo_path: 否 get_data_dir("nonebot_plugin_capoo") 设置图片存储路径,例如我的是data/plugin_capoo

图源在阿里云OSS上,是国内源,因此不需要代理就能下载。

🎉 使用

指令表

指令 权限 需要@ 范围 说明
capoo 群员 否 群聊 随机发送一张已保存的 capoo 的表情包

效果图

capoo 指令

TODO

  • 指令触发 bot 发送图片

本插件力求精简,更复杂的功能可移步 nonebot-plugin-randpic 插件。

Metadata

Release files for nonebot-plugin-capoo 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-capoo 1.0.0
File Size Uploaded Provenance Actions
nonebot_plugin_capoo-1.0.0.tar.gz 4.6 kB Without provenance Details for nonebot_plugin_capoo-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-capoo 1.0.0
File Interpreter ABI Platform Actions
nonebot_plugin_capoo-1.0.0-py3-none-any.whl Python 3 none any Details for nonebot_plugin_capoo-1.0.0-py3-none-any.whl

Total release size: 10.7 kB

Release files / nonebot_plugin_capoo-1.0.0.tar.gz

Download URL nonebot_plugin_capoo-1.0.0.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a804944325524abb5a158c3820f2bedbbe175dd09aeda2ee356be12f971d99dd
BLAKE2b-256 checksum
How to use checksums
f2f9517d24001a9eb2b1aba97f9b78647388ca10e36069e63df07beea4e23417
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / nonebot_plugin_capoo-1.0.0-py3-none-any.whl

Download URL nonebot_plugin_capoo-1.0.0-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bf92e71172447a8a1b6d1e017ec339990137cac614231a49650d24f6f14b42c5
BLAKE2b-256 checksum
How to use checksums
14ce9b2cdb21b27c5e9cc9f7967995f0ffc26f288beae690ddff0a45718503f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for nonebot-plugin-capoo 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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page