Revert "very important change"

This reverts commit eb988c091f.
This commit is contained in:
MadCat9958 2023-08-02 22:01:50 +03:00
parent 8f8265d7ea
commit 11e2d4d957

View file

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