Skip to content

Commit 476c014

Browse files
committed
fix(line): line adapter does not appear in the add platform dialog
fixes: #5477
1 parent 10163ec commit 476c014

2 files changed

Lines changed: 9 additions & 10 deletions

File tree

astrbot/core/config/default.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,15 @@ class ChatProviderTemplate(TypedDict):
425425
"slack_webhook_port": 6197,
426426
"slack_webhook_path": "/astrbot-slack-webhook/callback",
427427
},
428-
# LINE's config is located in line_adapter.py
428+
"Line": {
429+
"id": "line",
430+
"type": "line",
431+
"enable": False,
432+
"channel_access_token": "",
433+
"channel_secret": "",
434+
"unified_webhook_mode": True,
435+
"webhook_uuid": "",
436+
},
429437
"Satori": {
430438
"id": "satori",
431439
"type": "satori",

astrbot/core/platform/sources/line/line_adapter.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,6 @@
6565
"line",
6666
"LINE Messaging API 适配器",
6767
support_streaming_message=False,
68-
default_config_tmpl={
69-
"id": "line",
70-
"type": "line",
71-
"enable": False,
72-
"channel_access_token": "",
73-
"channel_secret": "",
74-
"unified_webhook_mode": True,
75-
"webhook_uuid": "",
76-
},
7768
config_metadata=LINE_CONFIG_METADATA,
7869
i18n_resources=LINE_I18N_RESOURCES,
7970
)

0 commit comments

Comments
 (0)