From ceadff9a4062922e8575c739415915688b2c07c6 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Fri, 14 Jun 2024 22:34:07 +0800 Subject: [PATCH] :bug: Change genshin resin limit to 60-200 --- plugins/genshin/daily_note_tasks.py | 2 +- plugins/tools/daily_note.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/genshin/daily_note_tasks.py b/plugins/genshin/daily_note_tasks.py index 64e112f5..05a6cd04 100644 --- a/plugins/genshin/daily_note_tasks.py +++ b/plugins/genshin/daily_note_tasks.py @@ -112,7 +112,7 @@ class DailyNoteTasksPlugin(Plugin.Conversation): validate = WebAppData(**result.data) except ValidationError: await message.reply_text( - "数据错误\n树脂提醒数值必须在 100 ~ 160 之间\n洞天宝钱提醒数值必须在 100 ~ 2400 之间\n每日任务提醒时间必须在 0 ~ 23 之间", + "数据错误\n树脂提醒数值必须在 60 ~ 200 之间\n洞天宝钱提醒数值必须在 100 ~ 2400 之间\n每日任务提醒时间必须在 0 ~ 23 之间", reply_markup=ReplyKeyboardRemove(), ) return ConversationHandler.END diff --git a/plugins/tools/daily_note.py b/plugins/tools/daily_note.py index 3ab7f179..255b2fe1 100644 --- a/plugins/tools/daily_note.py +++ b/plugins/tools/daily_note.py @@ -32,8 +32,8 @@ class ResinData(TaskDataBase): @validator("notice_num") def notice_num_validator(cls, v): - if v < 100 or v > 160: - raise ValueError("树脂提醒数值必须在 100 ~ 160 之间") + if v < 60 or v > 200: + raise ValueError("树脂提醒数值必须在 60 ~ 200 之间") return v