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-Einträge:
EinStein_Giga (formerly known as Newton) hat das Spiel betreten.
Klausi hat das Spiel betreten.
EinStein_ hat das Spiel betreten.
EinStein sagt: hallo leute!
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 :-)