nonebot-plugin-custom-face
✨ QQ 自定义表情相关 API ✨
📖 介绍
提供了刷新自定义表情列表,发送自定义表情等 API
💿 安装
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-custom-face
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_custom_face"]
用法
from nonebot import require, on_startswith
from nonebot.adapters.onebot.v11 import Bot, MessageEvent
require("nonebot_plugin_custom_face")
from nonebot_plugin_custom_face import send_custom_face, update_custom_face_list
@on_startswith("test").handle()
async def handle(bot: Bot, event: MessageEvent):
#刷新一下表情列表
await update_custom_face_list(bot)
#<face_1>是本地的表情列表中的表情id,按添加的时间从小到大排序,对于手机版QQ来说,自定义表情中的最旧一个(也就是列表最下边的一个)的本地表情列表中的id为 face_1
send_face_id = 'face_1'
await send_custom_face(bot, event, send_face_id)
Metadata
Release files for nonebot-plugin-custom-face 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_custom_face-0.1.1.tar.gz | 3.5 kB | Without provenance | Details for nonebot_plugin_custom_face-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_custom_face-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_custom_face-0.1.1-py3-none-any.whl |
Total release size: 7.8 kB
Release files / nonebot_plugin_custom_face-0.1.1.tar.gz
| Download URL | nonebot_plugin_custom_face-0.1.1.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c4429a16f0aa5c6c94e4d6a87ea7e3d1b69e1fac899049c9a56e7964b45c06fb
|
|
BLAKE2b-256 checksum How to use checksums |
e73b85400ecb3c1dafa3873be564d915b0ac5d9cbeb2ec96f1c88bb17b2d395d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Release files / nonebot_plugin_custom_face-0.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_custom_face-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
137d4ac7bdf715aa0a270ae3fa22fa057e175c1afed39dae7bcda793da88edb4
|
|
BLAKE2b-256 checksum How to use checksums |
c9dcf75cabe085a98cebcd373e42147a11e2983c0d628efb13de4598e97ef701
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.16
|
Security for nonebot-plugin-custom-face 0.1.1
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.