blob: 59014a80084679085e70c48d45ae72275bc03299 (
plain) (
blame)
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
33
34
35
36
|
"""Utilities for interacting with the config for King Arthur."""
from os import environ
import pydantic
from pydantic_settings import BaseSettings
class Config(
BaseSettings,
env_file=".env",
env_prefix="KING_ARTHUR_",
extra="ignore",
):
"""Configuration for King Arthur."""
token: pydantic.SecretStr
prefixes: tuple[str, ...] = ("arthur ", "M-x ")
cloudflare_token: pydantic.SecretStr
youtube_api_key: pydantic.SecretStr | None = None
grafana_url: str = "https://grafana.pydis.wtf"
grafana_token: pydantic.SecretStr
github_token: pydantic.SecretStr
github_org: str = "python-discord"
devops_role: int = 409416496733880320
guild_id: int = 267624335836053506
devops_channel_id: int = 675756741417369640
sentry_dsn: str = ""
GIT_SHA = environ.get("GIT_SHA", "development")
CONFIG = Config()
|