sanch1tx commited on
Commit
7f04fda
·
verified ·
1 Parent(s): b8bd349

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -25,7 +25,7 @@ BOT_OWNER_ID = int(os.environ.get("BOT_OWNER_ID", 7014665654))
25
  # --- File Management ---
26
  # We use a /data directory which is created in the Dockerfile for persistent storage
27
  SESSION_FILE = "/data/MegaNZBot"
28
- DOWNLOAD_DIR = "downloads" # This will be created inside /app
29
 
30
  # 🔹 Configure Logging
31
  logging.basicConfig(
@@ -329,6 +329,7 @@ async def ping_command(event):
329
 
330
  async def main():
331
  # Create required directories on startup
 
332
  os.makedirs(DOWNLOAD_DIR, exist_ok=True)
333
 
334
  await bot.start(bot_token=BOT_TOKEN)
 
25
  # --- File Management ---
26
  # We use a /data directory which is created in the Dockerfile for persistent storage
27
  SESSION_FILE = "/data/MegaNZBot"
28
+ DOWNLOAD_DIR = "/data/downloads" # This must point to the writable /data directory
29
 
30
  # 🔹 Configure Logging
31
  logging.basicConfig(
 
329
 
330
  async def main():
331
  # Create required directories on startup
332
+ # This directory is inside /data, which is writable
333
  os.makedirs(DOWNLOAD_DIR, exist_ok=True)
334
 
335
  await bot.start(bot_token=BOT_TOKEN)