aboutsummaryrefslogtreecommitdiffstats
path: root/arthur/config.py
blob: 022793b9058aab80536dec0d0e83542b41cda98b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
"""Utilities for interacting with the config for King Arthur."""
from pydantic import BaseSettings


class Config(BaseSettings):
    """Configuration for King Arthur."""

    # Discord bot token
    token: str

    # Discord bot prefix
    prefix: str

    # Authorised role ID for usage
    devops_role: int

    class Config:  # noqa: D106
        env_file = ".env"
        env_prefix = "KING_ARTHUR_"


CONFIG = Config()