mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
19 lines
483 B
Python
19 lines
483 B
Python
from pydantic import BaseModel
|
|
from nonebot import get_driver
|
|
|
|
|
|
class PluginConfig(BaseModel):
|
|
paimon_gacha_cd_group: int = 30
|
|
paimon_gacha_cd_user: int = 60
|
|
paimon_remind_start: int = 0
|
|
paimon_remind_end: int = 8
|
|
paimon_check_interval: int = 16
|
|
paimon_remind_limit: int = 3
|
|
paimon_sign_hour: int = 0
|
|
paimon_sign_minute: int = 0
|
|
|
|
|
|
driver = get_driver()
|
|
global_config = driver.config
|
|
config: PluginConfig = PluginConfig.parse_obj(global_config.dict())
|