mirror of
https://github.com/maubot/maubot
synced 2025-09-02 00:00:39 +00:00
Pass asyncio event loop and http session to plugin instances
This commit is contained in:
parent
9e066478a9
commit
767885cec7
3 changed files with 16 additions and 7 deletions
|
@ -32,8 +32,8 @@ log = logging.getLogger("maubot.client")
|
|||
|
||||
|
||||
class Client:
|
||||
log: logging.Logger
|
||||
loop: asyncio.AbstractEventLoop
|
||||
log: logging.Logger = None
|
||||
loop: asyncio.AbstractEventLoop = None
|
||||
cache: Dict[UserID, 'Client'] = {}
|
||||
http_client: ClientSession = None
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue