Spaces:
Paused
Paused
Download config.py from QwertOs/DiscordBot: direct link, hf CLI and curl.
- Browser
- Download file 506 Bytes
-
https://huggingface.co/spaces/QwertOs/DiscordBot/resolve/main/config.py
- Command line
-
hf download hf://spaces/QwertOs/DiscordBot/config.py
-
curl -L -o config.py https://huggingface.co/spaces/QwertOs/DiscordBot/resolve/main/config.py
506 Bytes
| from pydantic_settings import BaseSettings | |
| from pydantic import Field | |
| class Settings(BaseSettings): | |
| BOT_TOKEN: str | |
| OWNER_ID: int = 0 | |
| DB_HOST: str = "db" | |
| DB_PORT: int = 5432 | |
| DB_USER: str = "discord_bot" | |
| DB_PASS: str = "change_me_strong_password" | |
| DB_NAME: str = "fan_bot" | |
| REDIS_HOST: str = "redis" | |
| REDIS_PORT: int = 6379 | |
| LOG_LEVEL: str = "INFO" | |
| class Config: | |
| env_file = ".env" | |
| env_file_encoding = "utf-8" | |
| settings = Settings() |