From 8e65a9732b852337db56908972dca512b6268ec7 Mon Sep 17 00:00:00 2001 From: liuwei Date: Wed, 5 Mar 2025 09:20:35 +0800 Subject: [PATCH] =?UTF-8?q?feature=EF=BC=9A1.=E7=82=B9=E6=AD=8C=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C2.=E7=AD=BE=E5=88=B0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}")