Update chat_message_handle.py

This commit is contained in:
HibiKier 2022-04-26 15:16:26 +08:00 committed by GitHub
parent 93539be492
commit b0ab78340a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ async def _(event: GroupMessageEvent, reg_group: Tuple[Any, ...] = RegexGroup())
gid = event.group_id
date_scope = None
date, order, num = reg_group
num = num.split("=")[-1] or 10
num = num.split("=")[-1] if num else 10
if num and is_number(num) and 10 < int(num) < 50:
num = int(num)
if date in [""]: