Merge pull request '尝试语音功能' (#44) from QAQ into master
Reviewed-on: #44
This commit is contained in:
commit
fa5f1f5ad0
9
main.py
9
main.py
@ -399,6 +399,15 @@ class MyPlugin(Star):
|
||||
else:
|
||||
yield "获取骚话失败"
|
||||
|
||||
@filter.command("朱诺")
|
||||
async def Juno(self, event: AstrMessageEvent):
|
||||
path = "./Juno.wav" # 暂时只接受 wav 格式,其他格式请自行转换
|
||||
chain = [
|
||||
Comp.Record(file=path, url=path)
|
||||
]
|
||||
yield event.chain_result(chain)
|
||||
|
||||
|
||||
@filter.command("部署")
|
||||
async def bushutest(self, event: AstrMessageEvent):
|
||||
yield event.plain_result("自动部署成功!!")
|
||||
|
Loading…
x
Reference in New Issue
Block a user