Compare commits

..

No commits in common. "0eaec7a561af6be5ef13127585ae47562ed2ba1f" and "893bce18057c66ab2b1e5866629c1408b73788cb" have entirely different histories.

3 changed files with 10 additions and 0 deletions

BIN
Get.wav Normal file

Binary file not shown.

BIN
M.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

10
main.py
View File

@ -400,6 +400,16 @@ class MyPlugin(Star):
else: else:
yield "获取骚话失败" yield "获取骚话失败"
@filter.command("本地目录测试")
async def Juno(self, event: AstrMessageEvent):
yield event.plain_result("本地目录测试:")
file_path = os.path.abspath(__file__)
yield event.plain_result(file_path)
dir_path = os.path.dirname(file_path)
yield event.plain_result(dir_path)
yield event.image_result(dir_path + "/M.png") # 发送图片
@filter.command("部署") @filter.command("部署")
async def bushutest(self, event: AstrMessageEvent): async def bushutest(self, event: AstrMessageEvent):
yield event.plain_result("自动部署成功!!") yield event.plain_result("自动部署成功!!")