Archived
This project has been archived by its maintainers, and is no longer receiving any updates.
nonebot-plugin-mystere-patch
此插件提供针对 Mystere 的补丁支持,适用于 NoneBot2,开发者无需对现有代码进行任何修改。
插件包含 mnixry/nonebot-plugin-guild-patch。
补丁内容
PS:部分扩展内容正在申请并入 OneBot:查看详情
OneBot V11
-
所有事件新增参数:
字段名 数据类型 说明 id string 事件唯一标识符,当事件类型为 message时值同message_id -
send_message动作请求新增参数:字段名 数据类型 说明 origin_event map[string]any 可选,回复事件,当 origin_event字段存在时则为被动消息,否则为主动消息。PS:此处提到的回复不同于 消息段中定义的回复,在 QQ 开放平台中将 消息段中定义的回复 定义为 消息引用(message_reference)
其中
origin_event定义如下:字段名 数据类型 说明 id string 原事件 ID,由 Mystere 分发事件时提供 type string 原事件类型,同 OneBot V11 事件类型 detail_type string 原事件详细类型 [1] sub_type string 原事件子类型(详细类型的下一级类型) [2] -
detail_type定义如下:- 当
type为meta时,值为原事件的meta_event_type; - 当
type为message时,值为原事件的message_type; - 当
type为notice时,值为原事件的notice_type; - 当
type为request时,值为原事件的request_type。
- 当
-
sub_type定义如下:- 当
type为meta时,值为空字符串; - 当
type为message时,值为原事件的sub_type; - 当
type为notice时,值为原事件的sub_type; - 当
type为meta时,值为空字符串;
简而言之就是当原事件参数存在
sub_type时传递原值,否则传递空字符串。 - 当
-
OneBot V12
-
send_message动作请求新增参数:字段名 数据类型 说明 origin_event map[string]any 可选,回复事件,当 origin_event字段存在时则为被动消息,否则为主动消息。PS:此处提到的回复不同于 消息段中定义的回复,在 QQ 开放平台中将 消息段中定义的回复 定义为 消息引用(message_reference)
其中
origin_event定义如下(同 OneBot V12 事件类型):字段名 数据类型 说明 id string 原事件 ID type string 原事件类型 detail_type string 原事件详细类型 sub_type string 原事件子类型(详细类型的下一级类型)
Metadata
Release files for nonebot-plugin-mystere-patch 1.0.0a6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_mystere_patch-1.0.0a6.tar.gz | 2.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_mystere_patch-1.0.0a6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / nonebot_plugin_mystere_patch-1.0.0a6.tar.gz
| Download URL | nonebot_plugin_mystere_patch-1.0.0a6.tar.gz |
|---|---|
| Size | 2.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f32730784653d654e14753b3f1598e283d9638f24dab727d239fe162f206f61f
|
|
BLAKE2b-256 checksum How to use checksums |
2003046246b7e858d60b82e1bd0235ac736384ee3bf58a5defc2cd86e6d29767
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.2 Linux/6.2.16-3-pve
|
Release files / nonebot_plugin_mystere_patch-1.0.0a6-py3-none-any.whl
| Download URL | nonebot_plugin_mystere_patch-1.0.0a6-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6783f389bba837f7a1d6ae513427f916f8d085adc509a5d68a179a531fe7e79a
|
|
BLAKE2b-256 checksum How to use checksums |
bbc8ac2fbb877fc77cc3c1c1c6bba0f64ad0ef43f95f0720db37d9802516d99f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.7.1 CPython/3.11.2 Linux/6.2.16-3-pve
|