From 92121cb34ee985e4a321f550c2234b20f86ca6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E5=8F=AA=E7=93=9C?= <52106595+a-fruity-melon@users.noreply.github.com> Date: Wed, 30 Sep 2020 20:53:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=20=E4=BF=AE=E5=A4=8D=20sendatparse?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sendat.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sendat.py b/sendat.py index 59aaa31..5115f08 100644 --- a/sendat.py +++ b/sendat.py @@ -230,12 +230,13 @@ async def sendatparse(context): if text.find(".\n") == 0: text = "\n".join(text.split("\n")[1:]) lines = text.split("\n") + pms = [] for i in range(len(lines)): line = lines[i] sent = await sendmsg(context, chat, line) - await asyncio.sleep(1) sent.parameter = line.replace("-sendat ", "").split(" ") - await sendat(sent) + pms.append(sendat(sent)) + await asyncio.wait(pms) """ Modified pagermaid autorespond plugin. """