Genesis commit
This commit is contained in:
commit
eb92d2d36f
17 changed files with 408 additions and 0 deletions
14
classes.py
Normal file
14
classes.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from typing import NotRequired, TypedDict
|
||||
|
||||
|
||||
class ServerPlayersList(TypedDict):
|
||||
online: int
|
||||
max: int
|
||||
list: list[str]
|
||||
|
||||
|
||||
class ServerStatus(TypedDict):
|
||||
online: bool
|
||||
icon: NotRequired[str | None]
|
||||
motd: NotRequired[str]
|
||||
players: NotRequired[ServerPlayersList]
|
||||
Loading…
Add table
Add a link
Reference in a new issue