Compare commits
2 Commits
feee265119
...
68f98f2b20
Author | SHA1 | Date | |
---|---|---|---|
68f98f2b20 | |||
![]() |
8997b1ebb3 |
9
main.py
9
main.py
@ -401,13 +401,8 @@ class MyPlugin(Star):
|
|||||||
|
|
||||||
@filter.command("本地目录测试")
|
@filter.command("本地目录测试")
|
||||||
async def Juno(self, event: AstrMessageEvent):
|
async def Juno(self, event: AstrMessageEvent):
|
||||||
path = "./M.png" # 暂时只接受 wav 格式,其他格式请自行转换
|
yield event.plain_result("本地目录测试:")
|
||||||
chain = [
|
yield event.image_result("path/to/M.png") # 发送图片
|
||||||
Comp.At(qq=event.get_sender_id()), # At 消息发送者
|
|
||||||
Comp.Plain("来看这个图:"),
|
|
||||||
Comp.Image.fromFileSystem(path), # 从本地文件目录发送图片
|
|
||||||
]
|
|
||||||
yield event.chain_result(chain)
|
|
||||||
|
|
||||||
|
|
||||||
@filter.command("部署")
|
@filter.command("部署")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user