Patch plugin for NoneBot2 mystere support.
Project description
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 原事件子类型(详细类型的下一级类型)
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_mystere_patch-1.0.0a6.tar.gz.
File metadata
- Download URL: nonebot_plugin_mystere_patch-1.0.0a6.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/6.2.16-3-pve
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f32730784653d654e14753b3f1598e283d9638f24dab727d239fe162f206f61f
|
|
| MD5 |
08f6849e907b56421bfd324e70aa2f13
|
|
| BLAKE2b-256 |
2003046246b7e858d60b82e1bd0235ac736384ee3bf58a5defc2cd86e6d29767
|
File details
Details for the file nonebot_plugin_mystere_patch-1.0.0a6-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_mystere_patch-1.0.0a6-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/6.2.16-3-pve
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6783f389bba837f7a1d6ae513427f916f8d085adc509a5d68a179a531fe7e79a
|
|
| MD5 |
96d47f7871af0accdb0958f3ff12a45d
|
|
| BLAKE2b-256 |
bbc8ac2fbb877fc77cc3c1c1c6bba0f64ad0ef43f95f0720db37d9802516d99f
|