From 8cdb2cdac1f5519744e7589f60a2064a1233417a Mon Sep 17 00:00:00 2001 From: Kyomotoi Date: Thu, 8 Jul 2021 22:52:49 +0800 Subject: =?UTF-8?q?=F0=9F=94=A5=20=E5=88=A0=E9=99=A4=E4=B8=8D=E5=BF=85?= =?UTF-8?q?=E8=A6=81=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/config.py | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'ATRI') diff --git a/ATRI/config.py b/ATRI/config.py index 2f2c394..4c1c04d 100644 --- a/ATRI/config.py +++ b/ATRI/config.py @@ -23,30 +23,6 @@ class BotSelfConfig: seconds=config.get("session_expire_timeout", 60) ) - -class NetworkPost: - config: dict = config["NetworkPost"] - - host: str = config.get("host", "127.0.0.1") - port: int = int(config.get("port", 8081)) - - -class AdminPage: - config: dict = config["AdminPage"] - - host: str = config.get("host", "127.0.0.1") - port: int = int(config.get("port", 8082)) - - -class NsfwCheck: - config: dict = config["NsfwCheck"] - - enabled: bool = bool(config.get("enabled", False)) - passing_rate: int = int(config.get("passing_rate", 85)) - host: str = config.get("host", "127.0.0.1") - port: int = int(config.get("port", 5000)) - - class SauceNAO: config: dict = config["SauceNAO"] -- cgit v1.2.3