Genesis commit
This commit is contained in:
commit
eb92d2d36f
17 changed files with 408 additions and 0 deletions
14
config.py
Normal file
14
config.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from dotenv import dotenv_values
|
||||
|
||||
|
||||
class Config:
|
||||
data = dotenv_values()
|
||||
MINECRAFTD_PASSWORD: str | None = data.get("MINECRAFTD_PASSWORD")
|
||||
PID_FILE: str = data.get("PID_FILE") or "server.pid"
|
||||
START_COMMAND: str = data.get("START_COMMAND") or "python proc.py"
|
||||
SERVER_HOST: str = data.get("SERVER_HOST") or "localhost"
|
||||
SERVER_PORT: int = int(data.get("SERVER_PORT") or 25565)
|
||||
SERVER_RCON_PORT: int = int(data.get("SERVER_RCON_PORT") or 25575)
|
||||
SERVER_RCON_PASSWORD: str | None = data.get("SERVER_RCON_PASSWORD")
|
||||
MAINTAINANCE_FILE = data.get("MAINTAINANCE_FILE") or "maintainance.txt"
|
||||
LOG_FILE = data.get("LOG_FILE") or "logs.txt"
|
||||
Loading…
Add table
Add a link
Reference in a new issue