diff --git "a/docs/\346\212\225\350\265\204\344\272\272/index.html" "b/docs/\346\212\225\350\265\204\344\272\272/index.html" index 5a4b375c..2b03a922 100644 --- "a/docs/\346\212\225\350\265\204\344\272\272/index.html" +++ "b/docs/\346\212\225\350\265\204\344\272\272/index.html" @@ -781,6 +781,31 @@ avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241102133508_QQ%E5%9B%BE%E7%89%8720241102213441.png", amount: "1" }, + { + name: "Ծ‸Ծ", + avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241103045804_QQ%E5%9B%BE%E7%89%8720241103123637.jpg", + amount: "20" + }, + { + name: "nbllt666", + avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241103045936_QQ%E5%9B%BE%E7%89%8720241103125910.jpg", + amount: "10" + }, + { + name: "美人不胎生", + avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241103052325_QQ%E5%9B%BE%E7%89%8720241103132308.jpg", + amount: "1" + }, + { + name: "蔚蓝 星空", + avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241103060445_QQ%E5%9B%BE%E7%89%8720241103140425.jpg", + amount: "233" + }, + { + name: "滑稽", + avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_241103060456_QQ%E5%9B%BE%E7%89%8720241103140446.jpg", + amount: "9.99" + }, ]; // 对投资方数据按投资金额(amount)进行降序排序 diff --git "a/docs/\346\212\225\350\265\204\344\272\272/invest.png" "b/docs/\346\212\225\350\265\204\344\272\272/invest.png" index eb41888d..0a23a087 100644 Binary files "a/docs/\346\212\225\350\265\204\344\272\272/invest.png" and "b/docs/\346\212\225\350\265\204\344\272\272/invest.png" differ diff --git a/utils/my_handle.py b/utils/my_handle.py index d88afebd..08cffe6b 100644 --- a/utils/my_handle.py +++ b/utils/my_handle.py @@ -691,6 +691,7 @@ def audio_synthesis_handle(self, data_json): song 歌曲 reread 复读 key_mapping 按键映射 + key_mapping_copywriting 按键映射-文案 integral 积分 read_comment 念弹幕 gift 礼物 @@ -2437,6 +2438,13 @@ def get_a_copywriting_and_audio_synthesis(key_mapping_config, data): logger.info(f'【触发按键映射】触发文案:{tmp}') + # 洛曦 直播弹幕助手 + if My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "enable") and \ + "key_mapping_copywriting" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "type") and \ + "消息产生时" in My_handle.config.get("luoxi_project", "Live_Comment_Assistant", "trigger_position"): + asyncio.run(send_msg_to_live_comment_assistant(My_handle.config.get("luoxi_project", "Live_Comment_Assistant"), tmp)) + + # TODO: 播放时的转发没有实现,因为类型定义没有这么细化 self.audio_synthesis_handle(message) except Exception as e: logger.error(traceback.format_exc()) diff --git a/webui.py b/webui.py index 6758d882..3917bfbb 100644 --- a/webui.py +++ b/webui.py @@ -4163,7 +4163,8 @@ def local_qa_text_json_file_reload(): "gift_reply", "reread", "schedule", - "integral" + "integral", + "key_mapping_copywriting" ] luoxi_project_Live_Comment_Assistant_type_mapping = { "comment": "弹幕消息", @@ -4174,7 +4175,8 @@ def local_qa_text_json_file_reload(): "gift_reply": "礼物回复", "reread": "复读", "schedule": "定时任务", - "integral": "积分消息" + "integral": "积分消息", + "key_mapping_copywriting": "按键映射-文案" } luoxi_project_Live_Comment_Assistant_type_var = {}