Spaces:
Sleeping
Sleeping
File size: 1,272 Bytes
09b15bb |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
from pydantic_settings import BaseSettings, SettingsConfigDict
from bot.utils.logger import log
logo = """
ββββββ ββ ββ ββ βββ βββ ββββββ ββββββ ββββββββ
ββ ββ ββ ββ ββ ββββ ββββ ββ ββ ββ ββ ββ
ββββββ ββ ββ ββ ββ ββββ ββ ββββββ ββ ββ ββ
ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ ββ
ββββββ βββββββ ββββββ ββ ββ ββββββ ββββββ ββ
"""
class Settings(BaseSettings):
model_config = SettingsConfigDict(env_file=".env", env_ignore_empty=True)
API_ID: int
API_HASH: str
GAMES_ENABLED: bool = True
GAME_POINTS: list[int] = [100, 200]
SLEEP_BETWEEN_GAME: list[int] = [10, 20]
SLEEP_BETWEEN_START: list[int] = [20, 360]
ERRORS_BEFORE_STOP: int = 3
USE_PROXY_FROM_FILE: bool = False
try:
config = Settings()
except Exception as error:
log.error(error)
config = False |