Get rid of client.loop

Instead, use the asyncio-intended way of implicit loop.
This commit is contained in:
Lonami Exo
2022-01-16 13:51:23 +01:00
parent 6eadc8aed8
commit a62627534e
19 changed files with 140 additions and 177 deletions

View File

@@ -40,7 +40,7 @@ class _ChatAction:
self._chat, self._action)
self._running = True
self._task = self._client.loop.create_task(self._update())
self._task = asyncio.create_task(self._update())
return self
async def __aexit__(self, *args):