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 c55a5ab5..40117ed2 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" @@ -74,7 +74,7 @@ { name: "Kingsss", avatar: "https://images.cnblogs.com/cnblogs_com/ikaros-521/2328032/o_231201155829_QQ%E5%9B%BE%E7%89%8720231201235446.jpg", - amount: "¥360" + amount: "¥390" }, { name: "月零宫白", 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 9a6af392..e5bd0ce2 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 c14c60cd..6389d42c 100644 --- a/utils/my_handle.py +++ b/utils/my_handle.py @@ -722,6 +722,22 @@ def choose_song_handle(self, data): # 去除命令前缀 content = content[len(start_cmd):] + + # 说明用户仅发送命令,没有发送歌名,说明用户不会用 + if content == "": + message = { + "type": "comment", + "tts_type": My_handle.config.get("audio_synthesis_type"), + "data": My_handle.config.get(My_handle.config.get("audio_synthesis_type")), + "config": My_handle.config.get("filter"), + "user_name": user_name, + "content": f'点歌命令错误,命令为 {My_handle.config.get("choose_song", "start_cmd")}+歌名' + } + + self.audio_synthesis_handle(message) + + return True + # 判断是否有此歌曲 song_filename = My_handle.common.find_best_match(content, choose_song_song_lists, similarity=My_handle.config.get("choose_song", "similarity")) if song_filename is None: