chore: aiocqhttp添加默认access-token参数

This commit is contained in:
RockChinQ 2024-03-13 16:53:30 +08:00
parent afb3fb4a31
commit be06150990
2 changed files with 3 additions and 2 deletions

View File

@ -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:

View File

@ -20,7 +20,8 @@
"adapter": "aiocqhttp",
"enable": false,
"host": "0.0.0.0",
"port": 8080
"port": 8080,
"access-token": ""
},
{
"adapter": "qq-botpy",