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

This commit is contained in:
liuwei
2025-03-05 09:23:39 +08:00
parent 8e65a9732b
commit e648449970
2 changed files with 51 additions and 11 deletions
+4 -4
View File
@@ -1,6 +1,4 @@
# -*- coding: utf-8 -*-
import asyncio
import json
import logging
import re
import time
@@ -326,7 +324,7 @@ class Robot(Job):
except Exception as e:
self.LOG.error(f"group_member_change error: {e}")
try:
asyncio.create_task(self.music.get_music(message=msg)) # ✅ 推荐在事件循环中使用
self.music.get_music(message=msg) # ✅ 推荐在事件循环中使用
except Exception as e:
self.LOG.error(f"get_music error: {e}")
@@ -621,6 +619,8 @@ class Robot(Job):
except Exception as e:
self.LOG.error(f"xiu_ren_pdf_send error{e}")
if __name__ == '__main__':
heisi_path = generate_pdf_from_images("xiuren/heisi")
print(heisi_path)
print(heisi_path)