blob: ddfa47977faedfb021a4cd30acafd72d44e0b59e (
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
|
"""Utilities for interacting with the config for King Arthur."""
from pydantic_settings import BaseSettings
class Config(
BaseSettings,
env_file=".env",
env_prefix="KING_ARTHUR_",
extra="ignore",
):
"""Configuration for King Arthur."""
# Discord bot token
token: str
# Discord bot prefix
prefixes: tuple[str] = ("arthur ", "M-x ")
# Authorised role ID for usage
devops_role: int = 409416496733880320
# Token for authorising with the Cloudflare API
cloudflare_token: str
# Guild id
guild_id: int = 267624335836053506
# Token for authorising with the Notion API
notion_api_token: str | None = None
CONFIG = Config()
|