mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 07:47:39 +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"):
|
if text.startswith("-autorm"):
|
||||||
context.arguments = text.lstrip("-autorm").lstrip()
|
context.arguments = text.lstrip("-autorm").lstrip()
|
||||||
await autorm(context)
|
await autorm(context)
|
||||||
|
if text.startswith(f"-{alias_command('dme')}"):
|
||||||
|
return
|
||||||
await asyncio.sleep(delta)
|
await asyncio.sleep(delta)
|
||||||
await context.delete()
|
await context.delete()
|
||||||
return
|
return
|
||||||
@ -79,6 +81,8 @@ async def remove_message(context):
|
|||||||
if text.startswith("-autorm"):
|
if text.startswith("-autorm"):
|
||||||
context.arguments = text.lstrip("-autorm").lstrip()
|
context.arguments = text.lstrip("-autorm").lstrip()
|
||||||
await autorm(context)
|
await autorm(context)
|
||||||
|
if text.startswith(f"-{alias_command('dme')}"):
|
||||||
|
return
|
||||||
await asyncio.sleep(delta)
|
await asyncio.sleep(delta)
|
||||||
await context.delete()
|
await context.delete()
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user