🎨 优化新增加好友或者群之后的响应逻辑

This commit is contained in:
李寻欢
2024-07-11 13:56:33 +08:00
parent bc5adf26d9
commit e1c2eb78aa
2 changed files with 22 additions and 0 deletions

View File

@@ -33,6 +33,10 @@ func Plugin() {
dispatcher.RegisterHandler(func(m *dto.Message) bool {
return m.Type == types.MsgTypeSys
}, plugins.NotifyRemoveFromChatroom)
// 响应好友添加成功消息
dispatcher.RegisterHandler(func(m *dto.Message) bool {
return m.Type == types.MsgTypeSys
}, plugins.ReplyNewFriend)
// 私聊指令消息
dispatcher.RegisterHandler(func(m *dto.Message) bool {