| 4 | ENV_FILE_PATH = ".env" |
| 5 | |
| 6 | class Settings(BaseSettings): |
| 7 | model_config = SettingsConfigDict(env_file=ENV_FILE_PATH, env_ignore_empty=True) |
| 8 | |
| 9 | API_ID: int |
| 10 | API_HASH: str |
| 11 | |
| 12 | PLAY_GAMES: bool = True |
| 13 | POINTS: list[int] = [190, 230] |
| 14 | USE_CUSTOM_PAYLOAD_SERVER: bool = True |
| 15 | CUSTOM_PAYLOAD_SERVER_URL: str = "http://localhost:9876" |
| 16 | |
| 17 | AUTO_TASKS: bool = True |
| 18 | |
| 19 | USE_RANDOM_DELAY_IN_RUN: bool = True |
| 20 | RANDOM_DELAY_IN_RUN: list[int] = [5, 30] |
| 21 | |
| 22 | USE_REF: bool = False |
| 23 | REF_ID: str = '' |
| 24 | |
| 25 | TRIBE_CHAT_TAG: str = 'hidden_coding' |
| 26 | |
| 27 | USE_PROXY_FROM_FILE: bool = False |
| 28 | |
| 29 | DEBUG: bool = False |
| 30 | SLEEP_MINUTES_BEFORE_ITERATIONS: list[int] = [120, 600] |
| 31 | |
| 32 | try: |
| 33 | settings = Settings() |