A Python tool for processing YAML format MOTD configurations, allowing for one click import of random server descriptions.
- Two MOTD formatting modes
- Customizable line prefixes
- YAML configuration preservation
- Automatic text wrapping
- UTF-8 encoding support
- Ensure Python 3.8+ is installed
- Install dependencies:
pip install ruamel.yaml
- Prepare your
config.yml
andmotd.txt
files - Run the script:
python motd_processor.py
- Follow interactive prompts:
- Choose MOTD format (1/2)
- Enter prefixes for both lines
- Specify YAML key path (e.g.
description.text
)
Output will be saved to config_done.yml
First MOTD message
Second MOTD message
...