美腿功能

This commit is contained in:
liuwei
2025-03-10 09:39:59 +08:00
parent 93d0982ba3
commit 5505319918
4 changed files with 95 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ from base.func_news import News
from base.func_tigerbot import TigerBot
from base.func_xinghuo_web import XinghuoWeb
from base.func_claude import Claude
from beautyleg.beauty_leg import BeautyLeg
from configuration import Config
from constants import ChatType
from game_task.game_task_encyclopedia import game_process_message, setup_schedule, get_group_ids, \
@@ -90,6 +91,8 @@ class Robot(Job):
self.video = BotVideo(wcf, self.gbm)
# 秀人模块
self.xiuren = Xiuren(wcf, self.gbm)
# 美腿模块
self.beautyleg = BeautyLeg(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):
@@ -351,6 +354,12 @@ class Robot(Job):
except Exception as e:
self.LOG.error(f"xiuren.handle_message error: {e}")
# 美腿功能
try:
self.beautyleg.handle_message(message=msg)
except Exception as e:
self.LOG.error(f"beautyleg.handle_text error: {e}")
if msg.is_at(self.wxid): # 被@
self.toAt(msg)
return # 处理完群聊信息,后面就不需要处理了