From 361f22e014809c530044a7903b5851ff0b131bc3 Mon Sep 17 00:00:00 2001 From: MALINGREY Adrien Date: Wed, 4 Feb 2026 14:30:26 +0000 Subject: [PATCH] Installation en tant que service --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 615b5e9..2eadae8 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Voir la [documentation technique - Bot et Integrations Tchap](https://aide.tchap ## Installation -``` +```bash git clone https://gitlab-forge.din.developpement-durable.gouv.fr/drieat-if/dsin/usrt/tchap-beta.git cd tchap-beta python -m venv .venv @@ -24,7 +24,19 @@ editor .env python -c 'import secrets; print("salt=", secrets.token_bytes(16), sep="")' >> .env # Lancer -python tchapbeta.py +python tchap-beta.py ``` Pour que les messages apparaissent authentifiés, il faut se connecter sur [Tchap](https://www.tchap.gouv.fr/) avec le compte du bot et taper dans un salon `/verify ` avec les informations indiquées au démarrage du bot (sans les espaces). + +## Installer en tant que service + +En plus des commandes précédentes : + +```bash +cd .. +mv tchap-beta /opt/tchap-beta +sudo cp /opt/tchap-beta/tchap-beta.service /lib/systemd/system/ +sudo adduser --system chatbeta +sudo systemctl enable --now tchap-beta.service +````