Skip to main content

提供了关于QQ自定义表情的API

Project description

NoneBotPluginLogo

NoneBotPluginText

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


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_custom_face-0.0.5.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_custom_face-0.0.5-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_custom_face-0.0.5.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_custom_face-0.0.5.tar.gz
Algorithm Hash digest
SHA256 9ecd5fc13e28fad40b1dbc8ae87f2a935b5f20072d6bb3a25f5e4e7ab159e95c
MD5 39f9c4ef485d09602d7d7494af1e75a5
BLAKE2b-256 812ebdd9b5a8e5277a2a2750dcbfa0430f7a01817bb2997e2a33e8a54ee638b9

See more details on using hashes here.

File details

Details for the file nonebot_plugin_custom_face-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_custom_face-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dff7e29c01073736c31af5f33342d15a2f1a140bef3e9ec84fe0bca258b0a5fd
MD5 2cccc9d8f5ba0e2514aa4e02a9cce1ab
BLAKE2b-256 bec30801111f317b6d3514cffa3e47d02af3a97d150d3e93dddc6f77dac802b9

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