mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-02 03:55:55 +00:00
chore: aiocqhttp添加默认access-token参数
This commit is contained in:
@@ -216,7 +216,7 @@ class AiocqhttpAdapter(adapter.MessageSourceAdapter):
|
||||
|
||||
self.ap = ap
|
||||
|
||||
if "access-token" in config and config["access-token"]:
|
||||
if "access-token" in config:
|
||||
self.bot = aiocqhttp.CQHttp(access_token=config["access-token"])
|
||||
del self.config["access-token"]
|
||||
else:
|
||||
|
||||
@@ -20,7 +20,8 @@
|
||||
"adapter": "aiocqhttp",
|
||||
"enable": false,
|
||||
"host": "0.0.0.0",
|
||||
"port": 8080
|
||||
"port": 8080,
|
||||
"access-token": ""
|
||||
},
|
||||
{
|
||||
"adapter": "qq-botpy",
|
||||
|
||||
Reference in New Issue
Block a user