From 87a74335f91205603a0b069add0294e2f49c031e Mon Sep 17 00:00:00 2001 From: Aine Date: Sat, 23 Dec 2023 13:30:39 +0200 Subject: [PATCH] add automatic registration of chatgpt bot's user (if password is provided) --- group_vars/matrix_servers | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/group_vars/matrix_servers b/group_vars/matrix_servers index ca2bdc415b4..edb49dbfd75 100755 --- a/group_vars/matrix_servers +++ b/group_vars/matrix_servers @@ -4303,6 +4303,12 @@ matrix_user_creator_users_auto: | 'initial_type': 'admin', }] if matrix_bot_matrix_registration_bot_enabled else []) + + ([{ + 'username': matrix_bot_chatgpt_matrix_bot_username_localpart, + 'initial_password': matrix_bot_chatgpt_matrix_bot_password, + 'initial_type': 'bot', + }] if matrix_bot_chatgpt_enabled and matrix_bot_chatgpt_matrix_bot_password | length > 0 else []) + + ([{ 'username': matrix_bot_matrix_reminder_bot_matrix_user_id_localpart, 'initial_password': matrix_bot_matrix_reminder_bot_matrix_user_password,