Skip to content

Commit

Permalink
update config_manager.py
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Dec 27, 2024
1 parent 59a52f0 commit b76520e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions bot/core/config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ class Config:
USER_TRANSMISSION = False
UPSTREAM_REPO = ""
UPSTREAM_BRANCH = "master"
USENET_SERVERS = []
USER_SESSION_STRING = ""
USE_SERVICE_ACCOUNTS = False
WEB_PINCODE = False
Expand Down Expand Up @@ -110,9 +109,6 @@ def load_dict(cls, config_dict):
elif key == "DOWNLOAD_DIR":
if not value.endswith("/"):
value = f"{value}/"
elif key == "USENET_SERVERS":
if not value[0].get("host"):
continue
setattr(cls, key, value)
for key in ["BOT_TOKEN", "OWNER_ID", "TELEGRAM_API", "TELEGRAM_HASH"]:
value = getattr(cls, key)
Expand Down

0 comments on commit b76520e

Please sign in to comment.