13 lines
454 B
Python
13 lines
454 B
Python
from .matrix import *
|
|
import .listeners
|
|
real_listeners=dict(filter(lambda x:isinstance(x,Listener),listeners.__dict__.items()))
|
|
|
|
class MatrixClient(MatrixClient):
|
|
def __init__(self,*args,**kwargs):
|
|
super().__init__(*args,**kwargs)
|
|
self.listeners=real_listeners
|
|
self.homeserver=homeserver
|
|
self.token=token # Deal with login stuff later
|
|
self.baseurl=f'https://{self.homeserver}/_matrix/client'
|
|
self.session=ah.ClientSession()
|
|
self.since=None |