一時メッセージのサポート

This commit is contained in:
白池 2023-10-31 14:04:06 +08:00 committed by GitHub
parent a28d43ea3b
commit 42390774bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 2 deletions

View File

@ -18,7 +18,6 @@ icon: database
区别在于 `message` 是收到的消息,`message_sent` 是发送的消息。 区别在于 `message` 是收到的消息,`message_sent` 是发送的消息。
默认情况下Shamrock 只会上报 `message` 类型的消息。 默认情况下Shamrock 只会上报 `message` 类型的消息。
并且 Shamrock 暂未实现 `message_sent` 类型的上报。
::: :::
## 事件类型 ## 事件类型
@ -101,3 +100,17 @@ icon: database
| level | string | 发送者等级 | | level | string | 发送者等级 |
| role | string | 发送者角色 | | role | string | 发送者角色 |
| title | string | 发送者头衔 | | title | string | 发送者头衔 |
### Post_Message_TempSource
| 类型 | 来源 |
|------|------|
| 0 | 群聊 |
| 1 | QQ咨询 |
| 2 | 查找 |
| 3 | QQ电影 |
| 4 | 热聊 |
| 6 | 验证消息 |
| 7 | 多人聊天 |
| 8 | 约会 |
| 9 | 通讯录 |

View File

@ -22,6 +22,7 @@ icon: comment
| sender | object | 发送人信息 | | sender | object | 发送人信息 |
| group_id | int64 | 群号 | | group_id | int64 | 群号 |
| target_id | int64 | 消息目标(私聊) | | target_id | int64 | 消息目标(私聊) |
| temp_source | int32 | 临时聊天来源(私聊) |
| peer_id | int64 | 消息接收者群聊是群号私聊时是目标QQ | | peer_id | int64 | 消息接收者群聊是群号私聊时是目标QQ |
## 私聊消息 ## 私聊消息

View File

@ -69,7 +69,8 @@ Shamrock 提供了一个图形化的配置界面,可进行简单的配置操
"address": "ws://aaaaaaaaa", "address": "ws://aaaaaaaaa",
"token": "aaa666" // 提供了特例化token将不使用默认token "token": "aaa666" // 提供了特例化token将不使用默认token
} }
] ],
"allow-temp-session": false // 是否允许临时消息
} }
``` ```