diff --git a/robot.py b/robot.py index d59b3c0..33f865b 100644 --- a/robot.py +++ b/robot.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import asyncio import json import logging import re @@ -325,7 +326,7 @@ class Robot(Job): except Exception as e: self.LOG.error(f"group_member_change error: {e}") try: - self.music.get_music(message=msg) + asyncio.create_task(self.music.get_music(message=msg)) # ✅ 推荐在事件循环中使用 except Exception as e: self.LOG.error(f"get_music error: {e}")