blob: bb888386e19d1e5d8b84e24e5b69806d9acb2970 (
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
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 = ""
trashcan: str = "<:trashcan:637136429717389331>"
GIT_SHA = environ.get("GIT_SHA", "development")
CONFIG = Config()
|