override repr

This commit is contained in:
onyx-and-iris
2022-10-25 05:28:50 +01:00
parent c3ebc5e777
commit 5e7860d3ed
2 changed files with 8 additions and 2 deletions

View File

@@ -43,10 +43,13 @@ class EventClient:
kwargs = defaultkwargs | kwargs
self.base_client = ObsClient(**kwargs)
if self.base_client.authenticate():
self.logger.info("Successfully identified client with the server")
self.logger.info(f"Successfully identified {self} with the server")
self.callback = Callback()
self.subscribe()
def __repr__(self):
return type(self).__name__
def subscribe(self):
worker = Thread(target=self.trigger, daemon=True)
worker.start()