调整异常扣分记录,如果是异常的数据,则不扣分
This commit is contained in:
@@ -97,7 +97,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
if len(content.split(" ")) == 1:
|
||||
wcf.send_text(f"❌命令格式错误!\n{self.command_format}",
|
||||
(roomid if roomid else sender), sender)
|
||||
return True, "命令格式错误"
|
||||
return False, "命令格式错误"
|
||||
|
||||
# 检查权限
|
||||
if roomid and gbm.get_group_permission(roomid, Feature.MUSIC) == PermissionStatus.DISABLED:
|
||||
@@ -112,7 +112,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
if not song_info or not song_info.get("play_url"):
|
||||
wcf.send_text(f"❌未找到歌曲:{user_song_name}",
|
||||
(roomid if roomid else sender), sender)
|
||||
return True, "未找到歌曲"
|
||||
return False, "未找到歌曲"
|
||||
|
||||
# 发送音乐
|
||||
self._send_music_message(wcf, song_info, roomid or sender)
|
||||
@@ -120,7 +120,7 @@ class MusicPlugin(MessagePluginInterface):
|
||||
|
||||
except Exception as e:
|
||||
self.LOG.error(f"处理音乐请求出错: {e}")
|
||||
return True, f"处理出错: {e}"
|
||||
return False, f"处理出错: {e}"
|
||||
|
||||
def _search_song(self, song_name: str) -> Dict[str, Any]:
|
||||
"""搜索歌曲信息"""
|
||||
|
||||
Reference in New Issue
Block a user