mirror of
https://github.com/ChenXu233/nonebot_plugin_dialectlist.git
synced 2026-01-26 05:32:10 +00:00
first commit
This commit is contained in:
15
nonebot_plugin_dialectlist/config.py
Normal file
15
nonebot_plugin_dialectlist/config.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from typing import Optional
|
||||
|
||||
from nonebot import get_driver
|
||||
from pydantic import BaseModel, Extra
|
||||
|
||||
|
||||
class Config(BaseModel, extra=Extra.ignore):
|
||||
|
||||
timezone: Optional[str]
|
||||
|
||||
|
||||
|
||||
|
||||
global_config = get_driver().config
|
||||
plugin_config = Config.parse_obj(global_config)
|
||||
Reference in New Issue
Block a user