2022-05-11 01:53:12 +05:30
|
|
|
from typing import TypedDict
|
|
|
|
|
|
|
|
class Logging(TypedDict):
|
|
|
|
debug: bool
|
|
|
|
|
2022-05-12 12:44:23 +05:30
|
|
|
class Posters(TypedDict):
|
|
|
|
enabled: bool
|
|
|
|
imgurClientID: str
|
|
|
|
|
2022-05-11 01:53:12 +05:30
|
|
|
class Display(TypedDict):
|
|
|
|
useRemainingTime: bool
|
2022-05-12 12:44:23 +05:30
|
|
|
posters: Posters
|
2022-05-11 01:53:12 +05:30
|
|
|
|
2022-05-11 05:33:51 +05:30
|
|
|
class Server(TypedDict, total = False):
|
2022-05-11 01:53:12 +05:30
|
|
|
name: str
|
2022-05-11 07:20:06 +05:30
|
|
|
listenForUser: str
|
2022-05-11 01:53:12 +05:30
|
|
|
blacklistedLibraries: list[str]
|
|
|
|
whitelistedLibraries: list[str]
|
|
|
|
|
|
|
|
class User(TypedDict):
|
|
|
|
token: str
|
|
|
|
servers: list[Server]
|
|
|
|
|
|
|
|
class Config(TypedDict):
|
|
|
|
logging: Logging
|
|
|
|
display: Display
|
|
|
|
users: list[User]
|