init
Browse files
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)
|
|
|
|
|
|
|
| 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):
|