Skip to content

Commit

Permalink
Update config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aturret committed Nov 17, 2024
1 parent bdc8844 commit e904210
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
MONGODB_URL = env.get("MONGODB_URL", f"mongodb://{MONGODB_HOST}:{MONGODB_PORT}")

# Telegram bot environment variables
TELEGRAM_BOT_ON = get_env_bool(env, "TELEGRAM_BOT_ON", True)
TELEGRAM_BOT_MODE = env.get("TELEGRAM_BOT_MODE", "polling")
TELEGRAM_BOT_TOKEN = env.get("TELEGRAM_BOT_TOKEN", None)
TELEGRAM_BOT_SECRET_TOKEN = env.get(
"TELEGRAM_BOT_SECRET_TOKEN", secrets.token_urlsafe(32)
Expand Down Expand Up @@ -165,6 +167,8 @@ def ban_list_resolver(ban_list_string: str) -> list:
XHS_SAVE_LOGIN_STATE = get_env_bool(env, "XHS_SAVE_LOGIN_STATE", True)

# Zhihu
FXZHIHU_HOST = env.get("FXZHIHU_HOST", "fxzhihu.com")

zhihu_cookie_path = os.path.join(conf_dir, "zhihu_cookies.json")
if os.path.exists(zhihu_cookie_path):
try:
Expand Down

0 comments on commit e904210

Please sign in to comment.