Spaces:
Running on Zero
Running on Zero
Download config.py from codebydante/twisted_audio: direct link, hf CLI and curl.
- Browser
- Download file 717 Bytes
-
https://huggingface.co/spaces/codebydante/twisted_audio/resolve/main/config.py
- Command line
-
hf download hf://spaces/codebydante/twisted_audio/config.py
-
curl -L -o config.py https://huggingface.co/spaces/codebydante/twisted_audio/resolve/main/config.py
717 Bytes
| import os | |
| BASE_DIR = os.path.dirname(os.path.abspath(__file__)) | |
| DATA_DIR = os.path.join(BASE_DIR, "data") | |
| DOWNLOAD_DIR = os.path.join(BASE_DIR, "downloads") | |
| # Crear directorios obligatorios | |
| for d in [DATA_DIR, DOWNLOAD_DIR]: | |
| os.makedirs(d, exist_ok=True) | |
| # Credenciales de Bot | |
| API_ID = int(os.getenv("API_ID", "33226415")) | |
| API_HASH = os.getenv("API_HASH", "01999dae3e5348c7ab0dbcc6f7f4edc5") | |
| BOT_TOKEN = os.getenv("TELEGRAM_TOKEN") or os.getenv("BOT_TOKEN", "8640625268:AAH0X4Ve4YQ3q32EbRuCmvrf96Ylfmix_V4") | |
| # Constantes Party Mode | |
| LIMIT_2GB = 50 * 1024 * 1024 * 1024 | |
| DB_FILE = os.path.join(DATA_DIR, "descargas.json") | |
| SESSION_NAME = os.path.join(DATA_DIR, "mi_bot_pro") | |
| HAS_FFMPEG = True | |