Fix console

This commit is contained in:
Nexus 2023-12-05 14:58:35 +00:00
parent 502ba378a9
commit 86aad4a80e
Signed by: nex
GPG key ID: 0FA334385D0B689F
2 changed files with 2 additions and 2 deletions

View file

@ -4,7 +4,7 @@ from rich.console import Console
_col, _ = shutil.get_terminal_size((80, 20))
if _col == 80:
_col = 160
_col = 200
__all__ = ("console",)

View file

@ -293,7 +293,7 @@ async def bridge(req: Request):
@app.websocket("/bridge/recv")
async def bridge_recv(ws: WebSocket, secret: str = Header(None)):
await ws.accept()
print("Websocket %r accepted.", ws)
print("Websocket %r accepted." % ws)
if secret != app.state.bot.http.token:
print("Closing websocket %r, invalid secret." % ws)
raise _WSException(code=1008, reason="Invalid Secret")