A log-reading bot for mordhau.
For servers that don't have RCON support (like gportal), this bot can read the logs via FTP and pull relevant info into discord.
Track who is in the server, player count, map, and other server info.
Detect bans, unbans, kicks, mutes, unmutes.
Easily keep up with chat thanks to batching chat messages.
A single batched chat message.
python >= 3.7
Rename config.ini.template
to config.ini
and admins.json.template
to admins.json
.
Fill in the blank fields in config.ini
.
guilds
should be an array of server names in JSON format, example:
[discord.guilds]
guilds=["myserver","myotherserver"]
Most of the other settings don't need to be changed. throttle
is the download speed in bytes, 20 KB/s by default. Keep this low to make sure pings won't be affected in your server.
You can run the server in bash with
nohup python3 main.py 2>&1 > log.log &
disown
You'll need to resolve several dependencies by installing with pip.
In order to recieve pings for administrative messages, you'll need to populate admins.json
with data. The dict key should be the admin's playfabid.