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