feat: 删除过时配置

This commit is contained in:
RockChinQ 2024-02-11 23:11:13 +08:00
parent 9cad94e961
commit 836df87e18
2 changed files with 4 additions and 27 deletions

View File

@ -88,7 +88,10 @@ async def make_app() -> app.Application:
},
runtime_info={
"admin_id": "{}".format(system_cfg.data["admin-sessions"]),
"msg_source": platform_cfg.data["platform-adapter"],
"msg_source": [
adapter_cfg['adapter'] if 'adapter' in adapter_cfg else 'unknown'
for adapter_cfg in platform_cfg.data['platform-adapters'] if adapter_cfg['enable']
],
},
)
ap.ctr_mgr = center_v2_api

View File

@ -1,30 +1,4 @@
{
"platform-adapter": "yiri-mirai",
"yiri-mirai-config": {
"adapter": "WebSocketAdapter",
"host": "127.0.0.1",
"port": 8080,
"verifyKey": "yirimirai",
"qq": 123456789
},
"nakuru-config": {
"host": "127.0.0.1",
"ws_port": 8080,
"http_port": 5700,
"token": ""
},
"aiocqhttp-config": {
"host": "127.0.0.1",
"port": 8080
},
"qq-botpy-config": {
"appid": "",
"secret": "",
"intents": [
"public_guild_messages",
"direct_message"
]
},
"platform-adapters": [
{
"adapter": "yiri-mirai",