discord bot implementation commit
Build and Push Agent API / build (push) Successful in 24s

This commit is contained in:
2026-05-24 13:01:10 +02:00
parent 2f7f94f1ce
commit 1d65c7a9e9
7 changed files with 409 additions and 48 deletions
+10
View File
@@ -48,3 +48,13 @@ app.state.agent_graphs: dict = {}
# Routers
# ---------------------------------------------------------------------------
app.include_router(v1_router, prefix="/v1")
# ---------------------------------------------------------------------------
# Discord bot — launched once on app startup (not at import time, which
# would double-fire under uvicorn --reload).
# ---------------------------------------------------------------------------
@app.on_event("startup")
async def _start_discord_bot() -> None:
from bot.discord_bot import start_in_background # noqa: E402
start_in_background()