Skip to content

Commit e190c06

Browse files
committed
feat: change Milky.WebSocket configuration
1 parent 33b7e00 commit e190c06

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/configuration/milky.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,17 @@ Milky 服务用于验证的 Token\
7171
}
7272
```
7373

74-
### Milky.WebSocket
74+
### Milky.EnabledWebSocket
7575

76-
- 类型: `object | null`
77-
- 默认值: `{ }`
76+
- 类型: `boolean`
77+
- 默认值: `"true"`
7878

79-
设置为 `null` 以禁用 WebSocket 服务
79+
是否开启 WebSocket 服务
8080

8181
```json5
8282
{
8383
"Milky": {
84-
"WebSocket": {}
84+
"EnabledWebSocket": true
8585
}
8686
}
8787
```
@@ -119,7 +119,7 @@ WebHook 目标 URL
119119

120120
### Milky.Message.IgnoreBotMessage
121121

122-
- 类型: `bool`
122+
- 类型: `boolean`
123123
- 默认值: `false`
124124

125125
是否忽略 Bot 自己发送的消息

src/configuration/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"Port": 3000,
3838
"Prefix": "/",
3939
"AccessToken": null,
40-
"WebSocket": {},
40+
"EnabledWebSocket": true,
4141
"WebHook": null,
4242
"Message": {
4343
"IgnoreBotMessage": false,

0 commit comments

Comments
 (0)