mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-24 09:15:45 +00:00
🐛 Change genshin resin limit to 60-200
This commit is contained in:
parent
4d37de28b6
commit
ceadff9a40
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user