Refactored
This commit is contained in:
parent
7a2948570b
commit
e7248723f5
5 changed files with 164 additions and 107 deletions
10
config.py
Normal file
10
config.py
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue