fix protocol guideline & update docs (#2067)

* Update Bots.md

* Update AutoLoginConfig.kt
This commit is contained in:
水纹霖霖 2022-06-06 23:57:27 +08:00 committed by GitHub
parent 361f7f0cf1
commit d9c1da275b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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`
若登录失败,可尝试切换协议。**但注意部分功能在部分协议上不受支持**,详见源码内注释。

View File

@ -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"