aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/config.py
blob: e9f80d972a4300d92851afa992dde547968a5ca7 (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
"""Utilities for interacting with the config for King Arthur."""

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.pythondiscord.com"
    grafana_token: pydantic.SecretStr
    github_token: pydantic.SecretStr
    github_org: str = "python-discord"

    devops_role: int = 409416496733880320
    guild_id: int = 267624335836053506


CONFIG = Config()