very important change

This commit is contained in:
MadCat9958 2023-07-06 19:23:13 +03:00
parent cbde8ea727
commit eb988c091f

View file

@ -139,7 +139,7 @@ class BotiCordWebsocket:
await self.connect()
async def _send_ping(self) -> None:
if not self.ws.closed:
if self.not_closed:
await asyncio.sleep(45)
await self.ws.send_json({"event": "ping"})