diff options
Diffstat (limited to 'ATRI/config.py')
-rw-r--r-- | ATRI/config.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ATRI/config.py b/ATRI/config.py index d1a9bfd..b911a83 100644 --- a/ATRI/config.py +++ b/ATRI/config.py @@ -30,12 +30,26 @@ class BotSelfConfig: proxy: str = config.get("proxy", None) +class InlineGoCQHTTP: + config: dict = config["InlineGoCQHTTP"] + + accounts: list = config.get("accounts", []) + download_version: str = str(config.get("download_version", "latest")) + + class SauceNAO: config: dict = config["SauceNAO"] key: str = config.get("key", "") +class Setu: + config: dict = config["Setu"] + + reverse_proxy: bool = bool(config.get("reverse_proxy", False)) + reverse_proxy_domain: str = config.get("reverse_proxy_domain", str()) + + RUNTIME_CONFIG = { "host": BotSelfConfig.host, "port": BotSelfConfig.port, @@ -45,4 +59,7 @@ RUNTIME_CONFIG = { "command_start": BotSelfConfig.command_start, "command_sep": BotSelfConfig.command_sep, "session_expire_timeout": BotSelfConfig.session_expire_timeout, + + "gocq_accounts": InlineGoCQHTTP.accounts, + "gocq_version": InlineGoCQHTTP.download_version, } |