diff --git a/tchap-beta.py b/tchap-beta.py index 84ccb01..031c448 100755 --- a/tchap-beta.py +++ b/tchap-beta.py @@ -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): raise EventNotConcerned - reponse = parle() # il envoie l'information qu'il est en train d'écrire await matrix_client.room_typing(room.room_id) + reponse = parle() await asyncio.sleep(len(reponse) / 50) # il envoie le message await matrix_client.room_typing(room.room_id, typing_state=False)