From 6bd78018efdef9e72fbc1e51acb1cd18bbeda00b Mon Sep 17 00:00:00 2001 From: Kumi Date: Wed, 20 Nov 2024 21:20:00 +0100 Subject: [PATCH] feat: Add confirmation message after application submission Sends a confirmation message to the user once an application is submitted, thanking them and advising them to wait for moderator review. Enhances user experience by providing clarity and reassurance about the submission process. --- src/matrix_applicationbot/classes/bot.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/matrix_applicationbot/classes/bot.py b/src/matrix_applicationbot/classes/bot.py index f30e266..bf615b1 100644 --- a/src/matrix_applicationbot/classes/bot.py +++ b/src/matrix_applicationbot/classes/bot.py @@ -350,6 +350,15 @@ class ApplicationBot: }, ) + await self.client.room_send( + room.room_id, + "m.room.message", + { + "msgtype": "m.text", + "body": "Thank you for submitting your application. Please wait for a moderator to review it.", + }, + ) + await self.relay_message(room, sender, event) async def approve_or_reject_application(self, room, sender, command, approved):