测试加群功能

This commit is contained in:
liuwei
2025-02-18 13:25:16 +08:00
parent b5c3dbae91
commit be7ebc11cf

View File

@@ -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,