mirror of
https://github.com/baiqwerdvd/ArknightsUID.git
synced 2025-05-04 19:17:33 +08:00
1111
This commit is contained in:
parent
7e56bd5fcd
commit
2cfe45d2cf
@ -85,7 +85,9 @@ async def sub_ann_(bot: Bot, ev: Event):
|
||||
await bot.send("成功订阅明日方舟公告!")
|
||||
|
||||
|
||||
@sv_ann_sub.on_fullmatch((f"{PREFIX}取消订阅公告", f"{PREFIX}取消公告", f"{PREFIX}退订公告"))
|
||||
@sv_ann_sub.on_fullmatch(
|
||||
(f"{PREFIX}取消订阅公告", f"{PREFIX}取消公告", f"{PREFIX}退订公告")
|
||||
)
|
||||
async def unsub_ann_(bot: Bot, ev: Event):
|
||||
if ev.group_id is None:
|
||||
return await bot.send("请在群聊中取消订阅")
|
||||
@ -102,10 +104,6 @@ async def unsub_ann_(bot: Bot, ev: Event):
|
||||
|
||||
@scheduler.scheduled_job("interval", minutes=ann_minute_check)
|
||||
async def check_ark_ann():
|
||||
await check_ark_ann_state()
|
||||
|
||||
|
||||
async def check_ark_ann_state():
|
||||
logger.info("[明日方舟公告] 定时任务: 明日方舟公告查询..")
|
||||
|
||||
updates = await check_bulletin_update()
|
||||
|
@ -9,7 +9,9 @@ from gsuid_core.utils.plugins_config.models import (
|
||||
)
|
||||
|
||||
CONIFG_DEFAULT: Dict[str, GSC] = {
|
||||
"SignTime": GsListStrConfig("每晚签到时间设置", "每晚森空岛签到时间设置(时,分)", ["0", "38"]),
|
||||
"SignTime": GsListStrConfig(
|
||||
"每晚签到时间设置", "每晚森空岛签到时间设置(时,分)", ["0", "38"]
|
||||
),
|
||||
"SignReportSimple": GsBoolConfig(
|
||||
"简洁签到报告",
|
||||
"开启后可以大大减少每日签到报告字数",
|
||||
@ -36,6 +38,6 @@ CONIFG_DEFAULT: Dict[str, GSC] = {
|
||||
"ark",
|
||||
),
|
||||
"AnnMinuteCheck": GsIntConfig(
|
||||
"公告推送时间检测(单位min)", "公告推送时间检测(单位min)", 10, 60
|
||||
"公告推送时间检测(单位min)", "公告推送时间检测(单位min)", 1, 60
|
||||
),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user