summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ATRI/configs/create.py2
-rw-r--r--ATRI/configs/models.py6
-rw-r--r--README.md2
-rw-r--r--changelog.md2
4 files changed, 6 insertions, 6 deletions
diff --git a/ATRI/configs/create.py b/ATRI/configs/create.py
index 1eff69b..278ef8f 100644
--- a/ATRI/configs/create.py
+++ b/ATRI/configs/create.py
@@ -101,7 +101,7 @@ def init_config(conf_path: Path, default_conf_path: Path):
format(uin=str(uin), password=password, protocol=str(protocol))) # type: ignore
else:
raw_conf = raw_conf.replace("{is_use_with_gocq}", "false")
- raw_conf = raw_conf.replace("{account}", "[]")
+ raw_conf = raw_conf.replace("{accounts}", "[]")
raw_conf = raw_conf.replace("{saucenao_key}", saucenao_key)
diff --git a/ATRI/configs/models.py b/ATRI/configs/models.py
index b3b29c9..f024828 100644
--- a/ATRI/configs/models.py
+++ b/ATRI/configs/models.py
@@ -1,4 +1,4 @@
-from typing import List
+from typing import List, Optional
from pydantic import BaseModel
@@ -24,7 +24,7 @@ class GoCQHTTPAccountList(BaseModel):
class WithGoCQHTTP(BaseModel):
enabled: bool
- accounts: List[GoCQHTTPAccountList]
+ accounts: Optional[List[GoCQHTTPAccountList]]
download_domain: str
download_version: str
gocq_webui_username: str
@@ -64,7 +64,7 @@ class RuntimeConfig(BaseModel):
command_start: set
command_sep: set
session_expire_timeout: int
- gocq_accounts: list
+ gocq_accounts: Optional[list]
gocq_download_domain: str
gocq_version: str
gocq_webui_username: str
diff --git a/README.md b/README.md
index 5413265..022f316 100644
--- a/README.md
+++ b/README.md
@@ -23,7 +23,7 @@
- 使用 [go-cqhttp](https://go-cqhttp.org/) 作为默认协议端.
- 遵循 [OneBot v11](https://onebot.dev/) 规范.
- 易于上手的 [可视化界面](https://github.com/Kyomotoi/Project-ATRI-Console).
-- Comming soon...
+- Coming soon...
## 📱 功能概览 | Services Overview
diff --git a/changelog.md b/changelog.md
index f7680f2..2e9b039 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,6 +1,6 @@
> 此处仅为记录重大更新,修复 BUG/以及其它 请关注[`GitHub commits`](https://github.com/Kyomotoi/ATRI/commits/main)
-## Comming soon...
+## Coming soon...
- Next: `YHN-001-A06`
---