mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-25 01:25:04 +08:00
13 lines
345 B
Python
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"
|