html
This commit is contained in:
@@ -31,9 +31,9 @@ async def repond(room: MatrixRoom, message: Event, matrix_client: MatrixClient):
|
|||||||
reponse = parle()
|
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)
|
||||||
await asyncio.sleep(len(reponse) / 30)
|
await asyncio.sleep(len(reponse) / 50)
|
||||||
# il envoie le message
|
# il envoie le message
|
||||||
await matrix_client.send_text_message(room.room_id, reponse, "m.notice")
|
await matrix_client.send_html_message(room.room_id, reponse, "m.notice")
|
||||||
|
|
||||||
|
|
||||||
tchap_bot = MatrixBot(
|
tchap_bot = MatrixBot(
|
||||||
|
|||||||
Reference in New Issue
Block a user