mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
parent
8f8265d7ea
commit
11e2d4d957
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ class BotiCordWebsocket:
|
||||||
await self.connect()
|
await self.connect()
|
||||||
|
|
||||||
async def _send_ping(self) -> None:
|
async def _send_ping(self) -> None:
|
||||||
if self.not_closed:
|
if not self.ws.closed:
|
||||||
await asyncio.sleep(45)
|
await asyncio.sleep(45)
|
||||||
await self.ws.send_json({"event": "ping"})
|
await self.ws.send_json({"event": "ping"})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue