From 1cf840e3d9850df21397b6a8273ee1595f879e87 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Thu, 10 Jun 2021 02:51:23 -0400 Subject: [PATCH] maunium -> miscworks --- matrix_puppeteer_line/example-config.yaml | 2 +- matrix_puppeteer_line/portal.py | 2 +- matrix_puppeteer_line/web/provisioning_api.py | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/matrix_puppeteer_line/example-config.yaml b/matrix_puppeteer_line/example-config.yaml index b519223..2f241f9 100644 --- a/matrix_puppeteer_line/example-config.yaml +++ b/matrix_puppeteer_line/example-config.yaml @@ -45,7 +45,7 @@ appservice: # Display name and avatar for bot. Set to "remove" to remove display name/avatar, leave empty # to leave display name/avatar as-is. bot_displayname: LINE bridge bot - bot_avatar: mxc://maunium.net/VuvevQiMRlOxuBVMBNEZZrxi + bot_avatar: mxc://miscworks.net/uyHgFSLDDtATVGjtjWKwxrkK # Community ID for bridged users (changes registration file) and rooms. # Must be created manually. diff --git a/matrix_puppeteer_line/portal.py b/matrix_puppeteer_line/portal.py index d7c3412..5d42ef3 100644 --- a/matrix_puppeteer_line/portal.py +++ b/matrix_puppeteer_line/portal.py @@ -563,7 +563,7 @@ class Portal(DBPortal, BasePortal): @property def bridge_info_state_key(self) -> str: - return f"net.maunium.line://line/{self.chat_id}" + return f"net.miscworks.line://line/{self.chat_id}" @property def bridge_info(self) -> Dict[str, Any]: diff --git a/matrix_puppeteer_line/web/provisioning_api.py b/matrix_puppeteer_line/web/provisioning_api.py index 82a9a81..4bbf5ef 100644 --- a/matrix_puppeteer_line/web/provisioning_api.py +++ b/matrix_puppeteer_line/web/provisioning_api.py @@ -64,8 +64,8 @@ class ProvisioningAPI: return None for part in auth_parts: part = part.strip() - if part.startswith("net.maunium.line.auth-"): - return part[len("net.maunium.line.auth-"):] + if part.startswith("net.miscworks.line.auth-"): + return part[len("net.miscworks.line.auth-"):] return None def check_token(self, request: web.Request) -> Awaitable['u.User']: @@ -107,7 +107,7 @@ class ProvisioningAPI: if status.is_logged_in: raise web.HTTPConflict(text='{"error": "Already logged in"}', headers=self._headers) - ws = web.WebSocketResponse(protocols=["net.maunium.line.login"]) + ws = web.WebSocketResponse(protocols=["net.miscworks.line.login"]) await ws.prepare(request) try: async for url in user.client.login():