2f0597c81b
Includes c2-core (FastAPI/MQTT/Firestore), discord-bot (slash commands), frontend (Next.js admin UI), and mosquitto config.
15 lines
321 B
Python
15 lines
321 B
Python
from pydantic_settings import BaseSettings
|
|
from typing import Optional
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
discord_token: str
|
|
c2_url: str = "http://localhost:8000"
|
|
dev_guild_id: Optional[int] = None # set to sync commands instantly during dev
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
|
|
|
|
settings = Settings()
|