Refactored

This commit is contained in:
Malasaur 2025-12-14 21:05:51 +01:00
parent 7a2948570b
commit e7248723f5
No known key found for this signature in database
5 changed files with 164 additions and 107 deletions

10
config.py Normal file
View file

@ -0,0 +1,10 @@
from dotenv import dotenv_values
class Config:
data = dotenv_values()
MINECRAFT_HOST: str = data.get("MINECRAFT_HOST") or "localhost"
MINECRAFT_PORT: int = int(data.get("MINECRAFT_PORT") or 25565)
MINECRAFT_PASSWORD: str = data.get("MINECRAFT_PASSWORD") or "1234"
SIGNAL_HOST: str = data.get("SIGNAL_HOST") or "localhost"
SIGNAL_PORT: int = int(data.get("SIGNAL_PORT") or 8000)