mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-27 08:50:15 +08:00
fix protocol guideline & update docs (#2067)
* Update Bots.md * Update AutoLoginConfig.kt
This commit is contained in:
parent
361f7f0cf1
commit
d9c1da275b
@ -87,7 +87,7 @@ setHeartbeatStrategy(BotConfiguration.HeartbeatStrategy.REGISTER)
|
||||
```
|
||||
|
||||
#### 切换登录协议
|
||||
Mirai 支持多种登录协议:`ANDROID_PHONE`,`ANDROID_PAD`,`ANDROID_WATCH`,默认使用 `ANDROID_PHONE`。
|
||||
Mirai 支持多种登录协议:`ANDROID_PHONE`,`ANDROID_PAD`,`ANDROID_WATCH`,`IPAD`,`MACOS` 默认使用 `ANDROID_PHONE`。
|
||||
|
||||
若登录失败,可尝试切换协议。**但注意部分功能在部分协议上不受支持**,详见源码内注释。
|
||||
|
||||
|
@ -36,7 +36,7 @@ public class AutoLoginConfig : AutoSavePluginConfig("AutoLogin") {
|
||||
@Comment(
|
||||
"""
|
||||
账号配置. 可用配置列表 (注意大小写):
|
||||
"protocol": "ANDROID_PHONE" / "ANDROID_PAD" / "ANDROID_WATCH" /"MAC" / "IPAD"
|
||||
"protocol": "ANDROID_PHONE" / "ANDROID_PAD" / "ANDROID_WATCH" / "MACOS" / "IPAD"
|
||||
"device": "device.json"
|
||||
"enable": true
|
||||
"heartbeatStrategy": "STAT_HB" / "REGISTER" / "NONE"
|
||||
|
Loading…
Reference in New Issue
Block a user