10 lines
404 B
Python
10 lines
404 B
Python
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)
|