on indique qu'on écrit avant de commencer à réfléchir

This commit is contained in:
2026-02-11 18:18:35 +01:00
parent 2d85f0b5de
commit 484b5f7119

View File

@@ -27,9 +27,9 @@ async def repond(room: MatrixRoom, message: Event, matrix_client: MatrixClient):
if len(room.users) > 2 and not (message.formatted_body and matrix_client.user_id in message.formatted_body): if len(room.users) > 2 and not (message.formatted_body and matrix_client.user_id in message.formatted_body):
raise EventNotConcerned raise EventNotConcerned
reponse = parle()
# il envoie l'information qu'il est en train d'écrire # il envoie l'information qu'il est en train d'écrire
await matrix_client.room_typing(room.room_id) await matrix_client.room_typing(room.room_id)
reponse = parle()
await asyncio.sleep(len(reponse) / 50) await asyncio.sleep(len(reponse) / 50)
# il envoie le message # il envoie le message
await matrix_client.room_typing(room.room_id, typing_state=False) await matrix_client.room_typing(room.room_id, typing_state=False)