pip install -r requirements.txt
Get the Bot-Token and the Chat-ID and put it in a config.py file (see config.py.sample)
Set it to the right dir in config.py
* * * * * /usr/bin/python3 /opt/minetest/minetest-log-analyzer/log-analyzer.py --telegram
python3 log-analyzer.py
Output:
Log file: logs/22.log
+--------+------+--------+-------+
| User | Digs | Places | Total |
+--------+------+--------+-------+
| marita | 399 | 716 | 1115 |
| Lene | 319 | 2787 | 3106 |
| Luisa | 2382 | 3227 | 5609 |
| Heidi | 7077 | 12127 | 19204 |
+--------+------+--------+-------+
Chat messages:
<Heidi> Lene, schau dir mal den Eingang zum Bahnhof an
<Heidi> um was zu schreiben musst du auf t drücken
python3 log-analyzer.py --telegram
python3 log-analyzer.py --reset
You have many instances? Pick your logdir via CLI:
python3 log-analyzer.py --logdir /opt/minetest/logs
Have fun :-)