From 8997b1ebb3deef6638ae758344d4f37791194d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CQAQ=E2=80=9D?= <“1540691861@qq.com”> Date: Sat, 24 May 2025 11:33:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E7=9B=AE=E5=BD=95=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/main.py b/main.py index ded47af..7fa7d14 100644 --- a/main.py +++ b/main.py @@ -401,13 +401,8 @@ class MyPlugin(Star): @filter.command("本地目录测试") async def Juno(self, event: AstrMessageEvent): - path = "./M.png" # 暂时只接受 wav 格式,其他格式请自行转换 - chain = [ - Comp.At(qq=event.get_sender_id()), # At 消息发送者 - Comp.Plain("来看这个图:"), - Comp.Image.fromFileSystem(path), # 从本地文件目录发送图片 - ] - yield event.chain_result(chain) + yield event.plain_result("本地目录测试:") + yield event.image_result("path/to/M.png") # 发送图片 @filter.command("部署")