nonebot2/nonebot/adapters/cqhttp/config.py
2021-01-12 17:55:27 +08:00

13 lines
345 B
Python

from typing import Optional
from pydantic import Field, BaseSettings
class Config(BaseSettings):
cqhttp_access_token: Optional[str] = Field(default=None,
alias="access_token")
cqhttp_secret: Optional[str] = Field(default=None, alias="secret")
class Config:
extra = "ignore"