crazy-toads.github.io/script
Mickael 4854f09568 Update channels list
Remove archived channels
2019-06-22 14:11:52 +02:00
..
common Add messages by tsunamy in script generation 2019-06-09 14:59:22 +02:00
.gitignore Ajout script de test (la suite) 2019-06-11 18:25:42 +02:00
getchannels.py Update channels list 2019-06-22 14:11:52 +02:00
getstats.py Remove system message in stat 2019-06-16 11:02:24 +02:00
README.md Update README 2019-06-09 15:08:42 +02:00
requirements.txt Add scripts to generate stats 2019-06-08 22:08:21 +02:00
test.sh Ajout script de test 2019-06-11 18:19:28 +02:00

installation

pre-requis

Il faut Python 3 & pip car le code est fait en python.

Installation

Il faut lancer la commande pour avoir les dependences nécessaires :

pip install -r ./requirements.txt

Il faut créer un fichier dev_config.py avec ses infos de connection au Rocket.chat

rocket = {
    'user' : 'username',
    'password': 'pwd'
}

Get Channels

Permet de générer les infos pour la page
https://crapaud-fou.org/channelslist/

Lancer

python getchannels.py

Commit

Des fichiers seront créé

Get Stats

Permet de générer les infos pour la page
https://crapaud-fou.org/channelsstats/

Lancer

python getstats.py

Commit

Un fichier sera créé