Hook bot into HTTP server
This commit is contained in:
parent
2aa541ab60
commit
a8803de570
1 changed files with 1 additions and 0 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue