feature:加入读取鬼鬼API 黑丝视频功能

This commit is contained in:
liuwei
2025-03-05 16:32:29 +08:00
parent f8298929b3
commit accee358d3
4 changed files with 102 additions and 0 deletions

View File

@@ -30,6 +30,7 @@ from game_task.game_task_encyclopedia import game_process_message, setup_schedul
run_random_task_assignment
from group_auto.group_auto_invite import get_first_group_id, process_command
from group_auto.group_member_change import GroupMemberChange
from group_video.bot_video import BotVideo
from message_sign.main import SignInSystem
from message_storage.message_to_db import MessageStorage
from music.bot_music import BotMusic
@@ -84,6 +85,8 @@ class Robot(Job):
self.signin = SignInSystem(wcf, self.gbm, self.allContacts, self.db_pool, self.redis_pool)
# 积分赠送功能加载
self.trade = PointTrade(wcf, self.gbm, self.db_pool)
# 获取视频模块
self.video = BotVideo(wcf, self.gbm)
if ChatType.is_in_chat_types(chat_type):
if chat_type == ChatType.TIGER_BOT.value and TigerBot.value_check(self.config.TIGERBOT):
@@ -344,6 +347,12 @@ class Robot(Job):
except Exception as e:
self.LOG.error(f"point trade error: {e}")
# 加入积分赠与功能
try:
self.video.get_video(message=msg)
except Exception as e:
self.LOG.error(f"video get_video error: {e}")
if msg.is_at(self.wxid): # 被@
self.toAt(msg)
return # 处理完群聊信息,后面就不需要处理了