📝 空字符串

This commit is contained in:
远野千束 2024-06-02 15:03:50 +08:00
parent d6341c88cd
commit 657e7e52ac

View File

@ -85,6 +85,7 @@ async def _(event: T_MessageEvent, bot: Bot, state: T_State, matcher: Matcher):
reply = reply.replace("", "||").replace("", "||").replace("", "||").replace("", "||")
replies = reply.split("||")
for r in replies:
if r: # 防止空字符串
await asyncio.sleep(random.random() * 2)
await matcher.send(r)
else: