config
This commit is contained in:
@@ -5,4 +5,5 @@ SYSTEMD_LOGGING=False
|
||||
matrix_home_server="https://matrix.agent.ministere_example.tchap.gouv.fr"
|
||||
matrix_bot_username="jean.quidam@ministere_example.gouv.fr"
|
||||
matrix_bot_password="test"
|
||||
join_on_invite=True
|
||||
#https_proxy=http://adresse.du.proxy:port/
|
||||
|
||||
@@ -34,7 +34,7 @@ async def repond(room: MatrixRoom, message: Event, matrix_client: MatrixClient):
|
||||
await asyncio.sleep(len(reponse) / 50)
|
||||
# il envoie le message
|
||||
await matrix_client.room_typing(room.room_id, typing_state=False)
|
||||
await matrix_client.send_html_message(room.room_id, reponse, "m.notice")
|
||||
await matrix_client.send_html_message(room.room_id, reponse)
|
||||
|
||||
|
||||
tchap_bot = MatrixBot(
|
||||
@@ -46,10 +46,6 @@ tchap_bot = MatrixBot(
|
||||
ssl=True
|
||||
)
|
||||
|
||||
tchap_bot.matrix_client.matrix_config.encryption_enabled = True
|
||||
tchap_bot.matrix_client.matrix_config.ignore_unverified_devices = True
|
||||
tchap_bot.matrix_client.matrix_config.join_on_invite = True
|
||||
|
||||
tchap_bot.callbacks.register_on_message_event(repond)
|
||||
tchap_bot.run()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user