From be7ebc11cfecf70115ae1c55b0b7e9f2fd7a3520 Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 18 Feb 2025 13:25:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=8A=A0=E7=BE=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- robot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/robot.py b/robot.py index 99063df..4ae6e01 100644 --- a/robot.py +++ b/robot.py @@ -150,7 +150,13 @@ class Robot(Job): elif q == '/总结': self.message_summary_robot((msg.roomid if msg.from_group() else msg.sender)) return True - # 群管理自动加入,减少服务重启管理 + elif q == '4K': + try: + self.LOG.info(f"邀请加入4K群{msg.sender}") + self.wcf.invite_chatroom_members('45317011307@chatroom', msg.sender) + except Exception as e: + self.LOG.error(f"邀请加入4K群出错:{e}") + return True else: # 如果是群消息,并且群没开启AI,则不处理该动作 if msg.from_group() and self.gbm.get_group_permission(msg.roomid,