mirror of
https://github.com/TeamPGM/PagerMaid_Plugins.git
synced 2024-11-22 11:42:46 +00:00
🚑 修复 sendatparse
This commit is contained in:
parent
a471676d24
commit
92121cb34e
@ -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. """
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user