From a8803de570982421147e0f825b941802a0b9808c Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 10 Jan 2024 09:50:54 +0000 Subject: [PATCH] Hook bot into HTTP server --- src/main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.py b/src/main.py index c03da6a..902fd0f 100644 --- a/src/main.py +++ b/src/main.py @@ -47,6 +47,7 @@ class Client(commands.Bot): self.web: typing.Optional[asyncio.Task] = None async def start(self, token: str, *, reconnect: bool = True) -> None: + app.state.bot = self config = uvicorn.Config( app, host=CONFIG["server"].get("host", "0.0.0.0"),