Muttered3 commited on
Commit
45ef928
·
verified ·
1 Parent(s): 6b268d0

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -2,7 +2,7 @@ import asyncio
2
  import os
3
  from dummy_server import run_server
4
  from bot import app
5
- from worker import run_worker
6
  from pyrogram import idle
7
 
8
  async def main():
@@ -14,9 +14,9 @@ async def main():
14
  print("🤖 Starting Pyrogram Bot...")
15
  await app.start()
16
 
17
- # 3. Start the Sniper Workers
18
  print("🚀 Firing up Sniper Workers...")
19
- asyncio.create_task(run_worker())
20
 
21
  # 4. Keep the process alive forever
22
  await idle()
 
2
  import os
3
  from dummy_server import run_server
4
  from bot import app
5
+ from worker import manage_workers
6
  from pyrogram import idle
7
 
8
  async def main():
 
14
  print("🤖 Starting Pyrogram Bot...")
15
  await app.start()
16
 
17
+ # 3. Start the Sniper Worker Manager (Redis-Free version)
18
  print("🚀 Firing up Sniper Workers...")
19
+ asyncio.create_task(manage_workers())
20
 
21
  # 4. Keep the process alive forever
22
  await idle()