Spaces:
Runtime error
Runtime error
Update bot.py
Browse files
bot.py
CHANGED
|
@@ -112,7 +112,7 @@ async def on_startup(app: web.Application) -> None:
|
|
| 112 |
await db.connect()
|
| 113 |
logger.info("Database connected")
|
| 114 |
|
| 115 |
-
space_host =
|
| 116 |
if space_host:
|
| 117 |
full_webhook_link = f"https://{space_host.strip()}{config.WEBHOOK_PATH}"
|
| 118 |
for attempt in range(5):
|
|
|
|
| 112 |
await db.connect()
|
| 113 |
logger.info("Database connected")
|
| 114 |
|
| 115 |
+
space_host = os.getenv("SPACE_HOST", "")
|
| 116 |
if space_host:
|
| 117 |
full_webhook_link = f"https://{space_host.strip()}{config.WEBHOOK_PATH}"
|
| 118 |
for attempt in range(5):
|