From 564cc0bf2cd43b50127083f27932318ddb7d43da Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Wed, 28 Aug 2019 08:11:33 +0100 Subject: [PATCH] Register clients with user_type "bot" Depends on https://github.com/matrix-org/synapse/pull/5902 This means that synapse servers that require consent will not demand it from bot users. --- maubot/management/api/client_auth.py | 1 + 1 file changed, 1 insertion(+) diff --git a/maubot/management/api/client_auth.py b/maubot/management/api/client_auth.py index 81bdb6d..2d43106 100644 --- a/maubot/management/api/client_auth.py +++ b/maubot/management/api/client_auth.py @@ -93,6 +93,7 @@ async def register(request: web.Request) -> web.Response: "password": password, "admin": False, "mac": mac, + "user_type": "bot", })) except MatrixRequestError as e: return web.json_response({