update
This commit is contained in:
15
config.py
Normal file
15
config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from pydantic_settings import BaseSettings
|
||||
|
||||
class Settings(BaseSettings):
|
||||
homeserver_url: str
|
||||
matrix_user: str
|
||||
matrix_password: str
|
||||
default_room_id: str
|
||||
|
||||
# Optional: access token if login is already done or for bot accounts
|
||||
matrix_access_token: str | None = None
|
||||
|
||||
class Config:
|
||||
env_file = ".env"
|
||||
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user