summaryrefslogtreecommitdiff
path: root/ATRI/config.py
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-02-05 00:47:52 +0800
committerKyomotoi <[email protected]>2022-02-05 00:47:52 +0800
commitc38bab21b3c85e82250e3b82ebde31e2aca2db92 (patch)
treec0cee6ea72f8a8754a4c43927da6fe7954f54608 /ATRI/config.py
parent46b56e61866592f13a289064d56e1c1464353fdf (diff)
downloadATRI-c38bab21b3c85e82250e3b82ebde31e2aca2db92.tar.gz
ATRI-c38bab21b3c85e82250e3b82ebde31e2aca2db92.tar.bz2
ATRI-c38bab21b3c85e82250e3b82ebde31e2aca2db92.zip
🚑️🔒️🔧 大型修复工作
针对传回消息不同适配、外置限制改为nb内置限制
Diffstat (limited to 'ATRI/config.py')
-rw-r--r--ATRI/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ATRI/config.py b/ATRI/config.py
index 66e65fc..f9b8d95 100644
--- a/ATRI/config.py
+++ b/ATRI/config.py
@@ -35,6 +35,7 @@ class InlineGoCQHTTP:
enabled: bool = bool(config.get("enabled", True))
accounts: list = config.get("accounts", [])
+ download_domain: str = config.get("download_domain", "download.fastgit.org")
download_version: str = str(config.get("download_version", "latest"))
@@ -60,6 +61,8 @@ RUNTIME_CONFIG = {
"command_start": BotSelfConfig.command_start,
"command_sep": BotSelfConfig.command_sep,
"session_expire_timeout": BotSelfConfig.session_expire_timeout,
+
"gocq_accounts": InlineGoCQHTTP.accounts,
+ "gocq_download_domain": InlineGoCQHTTP.download_domain,
"gocq_version": InlineGoCQHTTP.download_version,
}