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