mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
chore: aiocqhttp添加默认access-token参数
This commit is contained in:
parent
afb3fb4a31
commit
be06150990
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue
Block a user