添加了弹幕消息的示例 (#321)

This commit is contained in:
Jannchie 2022-02-13 16:27:59 +09:00 committed by GitHub
parent eee539cb36
commit 89564e96bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -415,6 +415,98 @@ data字段
</detail>
json格式
| 字段 | 类型 | 内容 | 备注 |
| ---- | ---- | ------ | --------- |
| cmd | string | "DANMU_MSG" | 如果是弹幕消息,内容则是"DANMU_MSG" |
| info | list | 单条弹幕的用户、内容、粉丝勋章等各种信息 | 待补 |
<details>
<summary>查看消息示例:</summary>
``` json
{
"cmd": "DANMU_MSG",
"info": [
[
0,
4,
25,
5566168,
1644559560263,
1644558747,
0,
"998a531f",
0,
0,
5,
"#1453BAFF,#4C2263A2,#3353BAFF",
0,
"{}",
"{}",
{
"mode": 0,
"show_player_type": 0,
"extra": ""
}
],
"测试文本",
[
1850091,
"Jannchie见齐",
0,
0,
0,
10000,
1,
"#00D1F1"
],
[
21,
"観測者",
"Jannchie见齐",
422915,
1725515,
"",
0,
6809855,
1725515,
5414290,
3,
1,
1850091
],
[
20,
0,
6406234,
"u003e50000",
3
],
[
"",
""
],
0,
3,
null,
{
"ts": 1644559560,
"ct": "59DEA791"
},
0,
0,
null,
null,
0,
210
]
}
```
</details>
#### 送礼