Skip to content

Commit 7008a46

Browse files
machinadmachinaSoulter
authored
fix: update hint for ID whitelist configuration to clarify behavior when empty (#6611)
* fix: update hint for ID whitelist configuration to clarify behavior when empty * fix: update whitelist hint --------- Co-authored-by: machina <1531829828@qq.com> Co-authored-by: Soulter <905617992@qq.com>
1 parent 5a90b56 commit 7008a46

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

astrbot/core/config/default.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3439,7 +3439,7 @@ class ChatProviderTemplate(TypedDict):
34393439
"description": "白名单 ID 列表",
34403440
"type": "list",
34413441
"items": {"type": "string"},
3442-
"hint": "使用 /sid 获取 ID。",
3442+
"hint": "使用 /sid 获取 ID。当白名单列表为空时,代表不启用白名单(即所有 ID 都在白名单内)。",
34433443
},
34443444
"platform_settings.id_whitelist_log": {
34453445
"description": "输出日志",

dashboard/src/i18n/locales/en-US/features/config-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -697,11 +697,11 @@
697697
"platform_settings": {
698698
"enable_id_white_list": {
699699
"description": "Enable Whitelist",
700-
"hint": "When enabled, only sessions in the whitelist will be responded to."
700+
"hint": "When enabled, only sessions in the whitelist will be responded to. If the whitelist is empty, the whitelist is disabled and all IDs are allowed."
701701
},
702702
"id_whitelist": {
703703
"description": "Whitelist ID List",
704-
"hint": "Use /sid to get IDs."
704+
"hint": "Use /sid to get IDs. If the list is empty, it means whitelist is disabled (all IDs are in the whitelist)."
705705
},
706706
"id_whitelist_log": {
707707
"description": "Output Logs",

dashboard/src/i18n/locales/zh-CN/features/config-metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -699,11 +699,11 @@
699699
"platform_settings": {
700700
"enable_id_white_list": {
701701
"description": "启用白名单",
702-
"hint": "启用后,只有在白名单内的会话会被响应。"
702+
"hint": "启用后,只有在白名单内的会话会被响应,白名单列表为空时代表不启用白名单(所有 ID 都会被放行)"
703703
},
704704
"id_whitelist": {
705705
"description": "白名单 ID 列表",
706-
"hint": "使用 /sid 获取 ID。"
706+
"hint": "使用 /sid 获取 ID。列表为空时表示该白名单不启用(即所有 ID 都在白名单内)。"
707707
},
708708
"id_whitelist_log": {
709709
"description": "输出日志",

0 commit comments

Comments
 (0)