mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-12-01 01:25:07 +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"
|