From 42390774bdc1f11a96234b38f90716101d7b8ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E6=B1=A0?= <98259561+whitechi73@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E6=99=82=E3=83=A1=E3=83=83=E3=82=BB?= =?UTF-8?q?=E3=83=BC=E3=82=B8=E3=81=AE=E3=82=B5=E3=83=9D=E3=83=BC=E3=83=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/event/general-data.md | 15 ++++++++++++++- docs/event/message.md | 1 + docs/guide/configuration.md | 3 ++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/event/general-data.md b/docs/event/general-data.md index 76d633c..d154164 100644 --- a/docs/event/general-data.md +++ b/docs/event/general-data.md @@ -18,7 +18,6 @@ icon: database 区别在于 `message` 是收到的消息,`message_sent` 是发送的消息。 默认情况下,Shamrock 只会上报 `message` 类型的消息。 -并且 Shamrock 暂未实现 `message_sent` 类型的上报。 ::: ## 事件类型 @@ -101,3 +100,17 @@ icon: database | level | string | 发送者等级 | | role | string | 发送者角色 | | title | string | 发送者头衔 | + +### Post_Message_TempSource + +| 类型 | 来源 | +|------|------| +| 0 | 群聊 | +| 1 | QQ咨询 | +| 2 | 查找 | +| 3 | QQ电影 | +| 4 | 热聊 | +| 6 | 验证消息 | +| 7 | 多人聊天 | +| 8 | 约会 | +| 9 | 通讯录 | \ No newline at end of file diff --git a/docs/event/message.md b/docs/event/message.md index af0e80d..23b14af 100644 --- a/docs/event/message.md +++ b/docs/event/message.md @@ -22,6 +22,7 @@ icon: comment | sender | object | 发送人信息 | | group_id | int64 | 群号 | | target_id | int64 | 消息目标(私聊) | +| temp_source | int32 | 临时聊天来源(私聊) | | peer_id | int64 | 消息接收者,群聊是群号,私聊时是目标QQ | ## 私聊消息 diff --git a/docs/guide/configuration.md b/docs/guide/configuration.md index 21c90be..21596ae 100644 --- a/docs/guide/configuration.md +++ b/docs/guide/configuration.md @@ -69,7 +69,8 @@ Shamrock 提供了一个图形化的配置界面,可进行简单的配置操 "address": "ws://aaaaaaaaa", "token": "aaa666" // 提供了特例化token,将不使用默认token } - ] + ], + "allow-temp-session": false // 是否允许临时消息 } ```