feature:1.点歌功能,2.签到功能
This commit is contained in:
3
robot.py
3
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}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user