2022-04-30 14:13:39 +08:00
|
|
|
from pydantic import BaseModel
|
|
|
|
from nonebot import get_driver
|
2022-05-05 11:11:58 +08:00
|
|
|
from typing import List
|
2022-04-30 14:13:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
class PluginConfig(BaseModel):
|
2022-05-06 15:05:19 +08:00
|
|
|
# 群组模拟抽卡冷却(秒)
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_gacha_cd_group: int = 30
|
2022-05-06 15:05:19 +08:00
|
|
|
# 个人模拟抽卡冷却(秒)
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_gacha_cd_user: int = 60
|
2022-05-06 15:05:19 +08:00
|
|
|
# 树脂提醒停止检查时间(小时)
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_remind_start: int = 0
|
|
|
|
paimon_remind_end: int = 8
|
2022-05-06 15:05:19 +08:00
|
|
|
# 树脂提醒检查间隔(分钟)
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_check_interval: int = 16
|
2022-05-06 15:05:19 +08:00
|
|
|
# 树脂提醒每日提醒次数上限
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_remind_limit: int = 3
|
2022-05-06 15:05:19 +08:00
|
|
|
# 自动签到开始时间(小时)
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_sign_hour: int = 0
|
2022-05-06 15:05:19 +08:00
|
|
|
# 自动签到开始时间(分钟)
|
2022-04-30 14:13:39 +08:00
|
|
|
paimon_sign_minute: int = 0
|
2022-05-06 15:05:19 +08:00
|
|
|
# 对联冷却(秒)
|
2022-05-03 11:34:34 +08:00
|
|
|
paimon_duilian_cd: int = 6
|
2022-05-06 15:05:19 +08:00
|
|
|
# 猫图冷却(秒)
|
2022-05-03 11:34:34 +08:00
|
|
|
paimon_cat_cd: int = 12
|
2022-05-06 15:05:19 +08:00
|
|
|
# 二次元图冷却(秒)
|
2022-05-03 11:34:34 +08:00
|
|
|
paimon_ecy_cd: int = 6
|
2022-05-06 15:05:19 +08:00
|
|
|
# 原神壁纸图冷却(秒)
|
2022-05-03 11:34:34 +08:00
|
|
|
paimon_ysp_cd: int = 10
|
2022-05-06 15:05:19 +08:00
|
|
|
# 是否自动通过好友请求
|
2022-05-05 11:11:58 +08:00
|
|
|
paimon_add_friend: bool = False
|
2022-05-06 15:05:19 +08:00
|
|
|
# 是否自动通过群组请求
|
2022-05-05 11:11:58 +08:00
|
|
|
paimon_add_group: bool = False
|
2022-05-06 15:05:19 +08:00
|
|
|
# 派蒙聊天开启群组
|
2022-05-05 11:11:58 +08:00
|
|
|
paimon_chat_group: List[int] = []
|
2022-04-30 14:13:39 +08:00
|
|
|
|
|
|
|
|
|
|
|
driver = get_driver()
|
|
|
|
global_config = driver.config
|
|
|
|
config: PluginConfig = PluginConfig.parse_obj(global_config.dict())
|