mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-09 20:50:58 +00:00
feat: 支持语音组件
This commit is contained in:
@@ -45,7 +45,10 @@ class NakuruProjectMessageConverter(MessageConverter):
|
|||||||
elif type(component) is mirai.AtAll:
|
elif type(component) is mirai.AtAll:
|
||||||
nakuru_msg_list.append(nkc.AtAll())
|
nakuru_msg_list.append(nkc.AtAll())
|
||||||
elif type(component) is mirai.Voice:
|
elif type(component) is mirai.Voice:
|
||||||
pass
|
if component.url is not None:
|
||||||
|
nakuru_msg_list.append(nkc.Record.fromURL(component.url))
|
||||||
|
elif component.path is not None:
|
||||||
|
nakuru_msg_list.append(nkc.Record.fromFileSystem(component.path))
|
||||||
elif type(component) is Forward:
|
elif type(component) is Forward:
|
||||||
# 转发消息
|
# 转发消息
|
||||||
yiri_forward_node_list = component.node_list
|
yiri_forward_node_list = component.node_list
|
||||||
|
|||||||
Reference in New Issue
Block a user