Skip to content

Commit efee312

Browse files
committed
新增: 进群邀请
Signed-off-by: hd <hdshare@vip.qq.com>
1 parent b76f124 commit efee312

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ features:
4646
details: 监听收到[系统表情1+系统表情2]时自动合成新表情并发送
4747
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/hd/EmojiMix
4848

49+
- title: 进群邀请@hd
50+
details: 监听私聊收到[进群]时自动发送群聊邀请(需修改群聊wxid)
51+
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/hd/JoinGroupInvite
52+
4953
- title: 文生图@CkBcDD
5054
details: 命令[/作图 Corn Hub], 长按发送按钮生成并发送图片
5155
link: https://github.com/HdShare/WAuxiliary_Plugin/tree/main/plugins/CkBcDD/TXT-to-IMG
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
2+
void onHandleMsg(Object msgInfoBean) {
3+
if (msgInfoBean.isGroupChat()) return;
4+
if (msgInfoBean.isSend()) return;
5+
if (msgInfoBean.isText()) {
6+
String content = msgInfoBean.getContent();
7+
String talker = msgInfoBean.getTalker();
8+
if (content.equals("进群")) {
9+
inviteChatroomMember("demo@chatroom", talker);
10+
}
11+
}
12+
}

0 commit comments

Comments
 (0)