提供了关于QQ自定义表情的API
Project description
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)
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_custom_face-0.0.4.tar.gz.
File metadata
- Download URL: nonebot_plugin_custom_face-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
159594d616b3988ea9a33866adeed10309ad20c23d287f41f3588df8379e2a12
|
|
| MD5 |
1b7fb65f831f9074a2bd8178111bd393
|
|
| BLAKE2b-256 |
337ae48de74b986b4abdc0e2fb3e2f0111a4ee6b0d9b3318e74a769caac8a168
|
File details
Details for the file nonebot_plugin_custom_face-0.0.4-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_custom_face-0.0.4-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec5ff285b4aac38ed74f8ee206f98f0350186c1cefd27c368f82be6ed9e4a015
|
|
| MD5 |
058f94ab077668dd0bc3832a10b86058
|
|
| BLAKE2b-256 |
cbda49f4bdcbd18c12205ae695af1e19e5250be73dde93d8420f213e52d8a552
|