Skip to content

KidsLabDe/minecraft-log-analyzer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minecraft-Log-Analyzer & Telegram Bot

How to install

1. Install the python libraries

pip install -r requirements.txt

2. Get a Telegram Bot and put it in config

Get the Bot-Token and the Chat-ID and put it in a config.py file (see config.py.sample)

3. set the logs dir.

Set it to the right dir in config.py

(optional) Add it to your cron

* * * * * /usr/bin/python3 /opt/minetest/minetest-log-analyzer/log-analyzer.py --telegram

Usage

Normal usage

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!

Telegram-Mode

python3 log-analyzer.py --telegram

Reset, parse again

python3 log-analyzer.py --reset

Choose the logdir

You have many instances? Pick your logdir via CLI:

python3 log-analyzer.py --logdir /opt/minetest/logs

Have fun :-)

About

Minecraft Logfile Analyzer & Telegrom Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%