加群消息测试
This commit is contained in:
6
robot.py
6
robot.py
@@ -29,6 +29,7 @@ from configuration import Config
|
||||
from constants import ChatType
|
||||
from game_task.game_task_encyclopedia import game_process_message, setup_schedule, get_group_ids, \
|
||||
run_random_task_assignment
|
||||
from group_add.main import GroupAdd
|
||||
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
|
||||
@@ -96,6 +97,8 @@ class Robot(Job):
|
||||
self.xiuren = Xiuren(wcf, self.gbm)
|
||||
# 美腿模块
|
||||
self.beautyleg = BeautyLeg(wcf, self.gbm)
|
||||
# 加群测试
|
||||
self.group_add = GroupAdd(wcf, self.gbm, self.allContacts)
|
||||
|
||||
if ChatType.is_in_chat_types(chat_type):
|
||||
if chat_type == ChatType.TIGER_BOT.value and TigerBot.value_check(self.config.TIGERBOT):
|
||||
@@ -321,6 +324,9 @@ class Robot(Job):
|
||||
self.LOG.error(f"game_message_load error:{e}")
|
||||
try:
|
||||
# TODO 群人员添加也是消息类型10000的消息
|
||||
if msg.type == 10000:
|
||||
self.group_add.handle_message(msg)
|
||||
|
||||
result = self.gmc.process_message(msg.roomid, msg.xml)
|
||||
# 判断是否没有变化
|
||||
if "$NO_CHANGE$" not in result:
|
||||
|
||||
Reference in New Issue
Block a user