Update __init__.py

This commit is contained in:
HibiKier 2021-06-18 21:45:32 +08:00 committed by GitHub
parent 07df508513
commit 15c9efc5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,10 @@ async def _(bot: Bot, event: PrivateMessageEvent, state: T_State):
async def _(bot: Bot, event: PrivateMessageEvent, state: T_State):
if _ulmt.check(event.user_id):
await bt.finish('您有bt任务正在进行请等待结束.', at_sender=True)
mp = get_message_text(event.json()).split(" ")
mp = get_message_text(event.json())
if not mp:
return
mp = mp.split(' ')
if len(mp) == 2:
state['keyword'] = mp[0]
state['page'] = mp[1]