Muttered3 commited on
Commit
933b804
·
verified ·
1 Parent(s): 2e30fb3

Create config.py

Browse files
Files changed (1) hide show
  1. config.py +31 -0
config.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+
3
+ # --- TELEGRAM SETTINGS ---
4
+ TELEGRAM_BOT_TOKEN = os.environ.get("TELEGRAM_BOT_TOKEN", "")
5
+
6
+ # --- REDIS SETTINGS ---
7
+ REDIS_URL = os.environ.get(
8
+ "REDIS_URL",
9
+ "redis://default:dnWyfZcy0GLNkAUpV86i46xhf94VJ2Hz@redis-14792.c9.us-east-1-2.ec2.cloud.redislabs.com:14792"
10
+ )
11
+
12
+ # --- ADMIN USER IDs ---
13
+ ADMIN_USER_IDS = [
14
+ int(x.strip())
15
+ for x in os.environ.get("ADMIN_USER_IDS", "0").split(",")
16
+ if x.strip().lstrip("-").isdigit()
17
+ ]
18
+
19
+ # --- SCAN DEFAULTS (Overridden at runtime via /settings) ---
20
+ WORKERS = 35
21
+ DELAY_BETWEEN_REQUESTS = 0.5
22
+ MAX_RETRIES = 3
23
+ BATCH_SIZE = 250
24
+ MIN_WORD_LEN = 5
25
+ MAX_WORD_LEN = 12
26
+
27
+ # --- PROXY POOL (Populated at runtime via /proxies command) ---
28
+ PROXY_POOL: list[str] = []
29
+
30
+ # --- WORDLIST SOURCE ---
31
+ WORDLIST_URL = "https://norvig.com/ngrams/count_1w.txt"