A simple python script that reads a Minecraft log file, waits for your friends(or your) death, and posts them to discord for all to enjoy.
This was built with Python 3.11 and is being used with Minecraft 1.20 (Other versions may work, but I won't be troubleshooting those!)
The humbler runs in conjunction to a minecraft server that is running via a itzg/docker-minecraft-server based container. Log format might be standardized for minecraft, but anything customized from this container might not match your setup. You may need to customize to your specific setup to get this working properly.
Here is the official docs from Discord on how to do the: https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks
If you have nodejs and npm installed, you can use a utility called pm2 to help manage your python processes. It will allow you to create .err and .out files and manage the script to restart if it uses too much memory, etc.
Once installed you will need to create an "ecosystem.json" file which will act as a configuration file for pm2 to know where your app lives and further details about it.