nexus3rd commited on
Commit
de0bb9a
·
1 Parent(s): cbe7ad2
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -59,7 +59,9 @@ def determine_port():
59
  @app.on_event("startup")
60
  async def startup_event():
61
  # Start the bot in a separate thread to prevent blocking
62
- threading.Thread(target=start_bot).start()
 
 
63
 
64
  @app.get("/", response_class=HTMLResponse)
65
  async def read_root(request: Request):
 
59
  @app.on_event("startup")
60
  async def startup_event():
61
  # Start the bot in a separate thread to prevent blocking
62
+ bot_thread = threading.Thread(target=start_bot)
63
+ bot_thread.start()
64
+
65
 
66
  @app.get("/", response_class=HTMLResponse)
67
  async def read_root(request: Request):