Compare commits
No commits in common. "feee265119368cb1eb4014fd86ad0409ded9cdc4" and "22c2029103b52cfb0f2a2fb12652a610fab63803" have entirely different histories.
feee265119
...
22c2029103
8
main.py
8
main.py
@ -399,13 +399,11 @@ class MyPlugin(Star):
|
|||||||
else:
|
else:
|
||||||
yield "获取骚话失败"
|
yield "获取骚话失败"
|
||||||
|
|
||||||
@filter.command("本地目录测试")
|
@filter.command("语音测试")
|
||||||
async def Juno(self, event: AstrMessageEvent):
|
async def Juno(self, event: AstrMessageEvent):
|
||||||
path = "./M.png" # 暂时只接受 wav 格式,其他格式请自行转换
|
path = "./Get.wav" # 暂时只接受 wav 格式,其他格式请自行转换
|
||||||
chain = [
|
chain = [
|
||||||
Comp.At(qq=event.get_sender_id()), # At 消息发送者
|
Comp.Record(file=path, url=path)
|
||||||
Comp.Plain("来看这个图:"),
|
|
||||||
Comp.Image.fromFileSystem(path), # 从本地文件目录发送图片
|
|
||||||
]
|
]
|
||||||
yield event.chain_result(chain)
|
yield event.chain_result(chain)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user