diff --git a/pkg/platform/sources/aiocqhttp.py b/pkg/platform/sources/aiocqhttp.py index 6eaa6ce9..51b3e2b4 100644 --- a/pkg/platform/sources/aiocqhttp.py +++ b/pkg/platform/sources/aiocqhttp.py @@ -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: diff --git a/templates/platform.json b/templates/platform.json index fd57c97b..b048f2f8 100644 --- a/templates/platform.json +++ b/templates/platform.json @@ -20,7 +20,8 @@ "adapter": "aiocqhttp", "enable": false, "host": "0.0.0.0", - "port": 8080 + "port": 8080, + "access-token": "" }, { "adapter": "qq-botpy",