一个发送 capoo 表情包的插件
Project description
📖 介绍
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 插件。
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
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_capoo-1.0.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_capoo-1.0.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a804944325524abb5a158c3820f2bedbbe175dd09aeda2ee356be12f971d99dd
|
|
| MD5 |
47b7d86c3eeb08a6d029f23e5fe79378
|
|
| BLAKE2b-256 |
f2f9517d24001a9eb2b1aba97f9b78647388ca10e36069e63df07beea4e23417
|
File details
Details for the file nonebot_plugin_capoo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_capoo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bf92e71172447a8a1b6d1e017ec339990137cac614231a49650d24f6f14b42c5
|
|
| MD5 |
8dfe2ec77266a0c31650477b1af2bff8
|
|
| BLAKE2b-256 |
14ce9b2cdb21b27c5e9cc9f7967995f0ffc26f288beae690ddff0a45718503f7
|