项目作者: MrFlynn

项目描述 :
Sends message to webhook URL containing list inactive players on a given Minecraft server.
高级语言: Python
项目地址: git://github.com/MrFlynn/mc-playeractivity-webhook.git
创建时间: 2018-07-10T06:27:12Z
项目社区:https://github.com/MrFlynn/mc-playeractivity-webhook

开源协议:MIT License

下载


mc-playeractivity-webhook

This application reports inactive players on a given Minecraft server to a
webhook periodically. The number of days a player is inactive, the frequency
with which to report those inactive players, as well as where to send the
message (using a webhook) can all be configured in this program’s config.ini.

Usage:

  1. Edit the settings in the provided example configuration file
    (config.ini.example) to match the settings corresponding to your needs and
    the webhook the inactive player list should be posted to. Note: if using
    Docker, keep the RootDirectory setting the same.
  2. Rename the file to config.ini.
  3. If using docker, just run these commands:
    1. $ docker build -t mc-playeractivity-webhook:latest .
    2. $ docker run -v /path/to/server:/server mc-playeractivity-webhook:latest -d
  4. If not using Docker, run these commands:
    1. $ pip3 install -r requirements.txt
    2. $ export CONFIG_FILE="config.ini"
    3. $ python3 main.py