🐛 Fix: 修复 echo 发送空消息 (#2525)

This commit is contained in:
Ju4tCode
2024-01-14 14:49:05 +08:00
committed by GitHub
parent ccf9597102
commit 6b1e34da63
2 changed files with 35 additions and 1 deletions

View File

@ -19,4 +19,5 @@ echo = on_command("echo", to_me())
@echo.handle()
async def handle_echo(message: Message = CommandArg()):
await echo.send(message=message)
if any((not seg.is_text()) or str(seg) for seg in message):
await echo.send(message=message)