mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-08 21:30:01 +08:00
🚨 auto fix by pre-commit hooks
This commit is contained in:
@@ -426,8 +426,9 @@ async def handle_delete(names: Match[list[str]]):
|
||||
async def handle_clear():
|
||||
confirm = await prompt_until(
|
||||
"【警告】此操作将删除所有群组标签,是否继续?\n请输入 `是` 或 `确定` 确认操作",
|
||||
lambda msg: msg.extract_plain_text().lower()
|
||||
in ["是", "确定", "yes", "confirm"],
|
||||
lambda msg: (
|
||||
msg.extract_plain_text().lower() in ["是", "确定", "yes", "confirm"]
|
||||
),
|
||||
timeout=30,
|
||||
retry=1,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user