feature:1.点歌功能,2.签到功能

This commit is contained in:
liuwei
2025-03-05 09:20:35 +08:00
parent 58fb300e4a
commit 8e65a9732b

View File

@@ -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}")