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"),