🐛 修复加群通知不提醒的BUG

This commit is contained in:
李寻欢
2024-07-08 10:57:52 +08:00
parent f747bf5ead
commit 2e5632c203
5 changed files with 33 additions and 25 deletions

View File

@@ -23,6 +23,12 @@ func Plugin() {
return true
}, plugins.SaveToDb)
// 通知邀请入群消息到配置用户
dispatcher.RegisterHandler(func(m *dto.Message) bool {
flag, _ := m.IsInvitationJoinGroup()
return flag
}, plugins.NotifyInvitationJoinGroup)
// 私聊指令消息
dispatcher.RegisterHandler(func(m *dto.Message) bool {
// 私聊消息 或 群聊艾特机器人并且以/开头的消息