🚑 修复 sendatparse

This commit is contained in:
一只瓜 2020-09-30 20:53:34 +08:00 committed by GitHub
parent a471676d24
commit 92121cb34e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -230,12 +230,13 @@ async def sendatparse(context):
if text.find(".\n") == 0: if text.find(".\n") == 0:
text = "\n".join(text.split("\n")[1:]) text = "\n".join(text.split("\n")[1:])
lines = text.split("\n") lines = text.split("\n")
pms = []
for i in range(len(lines)): for i in range(len(lines)):
line = lines[i] line = lines[i]
sent = await sendmsg(context, chat, line) sent = await sendmsg(context, chat, line)
await asyncio.sleep(1)
sent.parameter = line.replace("-sendat ", "").split(" ") sent.parameter = line.replace("-sendat ", "").split(" ")
await sendat(sent) pms.append(sendat(sent))
await asyncio.wait(pms)
""" Modified pagermaid autorespond plugin. """ """ Modified pagermaid autorespond plugin. """