From 28fe2fe808572046cfb6d679303e4392ccde3610 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sat, 31 Jul 2021 00:05:10 +0800 Subject: [PATCH] =?UTF-8?q?autorm=20=E9=98=B2=E6=AD=A2=20dme=20=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=20io=20=E6=93=8D=E4=BD=9C=E6=97=B6=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=B0=E7=AD=89=E5=BE=85=20sleep=20?= =?UTF-8?q?=E7=BA=BF=E7=A8=8B=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- autorm.py | 4 ++++ list.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/autorm.py b/autorm.py index 0c883b8..9f289c6 100644 --- a/autorm.py +++ b/autorm.py @@ -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 diff --git a/list.json b/list.json index 2770331..a13fddd 100644 --- a/list.json +++ b/list.json @@ -32,7 +32,7 @@ }, { "name": "autorm", - "version": "1.02", + "version": "1.03", "section": "chat", "maintainer": "fruitymelon", "size": "6.7 kb",