mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 01:15:34 +00:00
autorm 防止 dme 进行 io 操作时自动切换到等待 sleep 线程结束
This commit is contained in:
parent
5966bfef73
commit
28fe2fe808
@ -71,6 +71,8 @@ async def remove_message(context):
|
||||
if text.startswith("-autorm"):
|
||||
context.arguments = text.lstrip("-autorm").lstrip()
|
||||
await autorm(context)
|
||||
if text.startswith(f"-{alias_command('dme')}"):
|
||||
return
|
||||
await asyncio.sleep(delta)
|
||||
await context.delete()
|
||||
return
|
||||
@ -79,6 +81,8 @@ async def remove_message(context):
|
||||
if text.startswith("-autorm"):
|
||||
context.arguments = text.lstrip("-autorm").lstrip()
|
||||
await autorm(context)
|
||||
if text.startswith(f"-{alias_command('dme')}"):
|
||||
return
|
||||
await asyncio.sleep(delta)
|
||||
await context.delete()
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user