diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 4930bc9ca..475a1be5c 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -425,7 +425,15 @@ CONFIG_METADATA_2 = { "slack_webhook_port": 6197, "slack_webhook_path": "/astrbot-slack-webhook/callback", }, - # LINE's config is located in line_adapter.py + "Line": { + "id": "line", + "type": "line", + "enable": False, + "channel_access_token": "", + "channel_secret": "", + "unified_webhook_mode": True, + "webhook_uuid": "", + }, "Satori": { "id": "satori", "type": "satori", diff --git a/astrbot/core/platform/sources/line/line_adapter.py b/astrbot/core/platform/sources/line/line_adapter.py index 9348ff100..c13677b13 100644 --- a/astrbot/core/platform/sources/line/line_adapter.py +++ b/astrbot/core/platform/sources/line/line_adapter.py @@ -65,15 +65,6 @@ LINE_I18N_RESOURCES = { "line", "LINE Messaging API 适配器", support_streaming_message=False, - default_config_tmpl={ - "id": "line", - "type": "line", - "enable": False, - "channel_access_token": "", - "channel_secret": "", - "unified_webhook_mode": True, - "webhook_uuid": "", - }, config_metadata=LINE_CONFIG_METADATA, i18n_resources=LINE_I18N_RESOURCES, )