Skip to content

Latest commit

 

History

History
59 lines (34 loc) · 1.44 KB

README.md

File metadata and controls

59 lines (34 loc) · 1.44 KB

wessex

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.

Features

Server status

Track who is in the server, player count, map, and other server info.

Server Status

Administrative tracking

Detect bans, unbans, kicks, mutes, unmutes.

bans

Chat tracking with batching

Easily keep up with chat thanks to batching chat messages.

chats

A single batched chat message.

Requirements

python >= 3.7

Setup

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.

Running

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.

Getting @ pings in discord

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.