mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-29 17:27:41 +00:00
🚧 move cqhttp config into adapter
This commit is contained in:
12
nonebot/adapters/cqhttp/config.py
Normal file
12
nonebot/adapters/cqhttp/config.py
Normal file
@ -0,0 +1,12 @@
|
||||
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"
|
Reference in New Issue
Block a user